Manpages for libdrm
cover Manpages for libdrm
Hi
This is revision 2 of the manpages for libdrm. I converted everything to docbook XML. This makes it easier to write them (troff is really hard to read) and allows us to integrate it into other documentation.
Other than that I only fixed typos and the small corrections you guys mentioned. Thanks for reviewing!
Regards
David
David Herrmann (4):
man: convert manpages to XML instead of plain troff
man: add drm.7 overview page
man: add drm-kms overview page
man: add drm-memory overview page
.gitignore | 4 + configure.ac | 24 +-- man/Makefile.am | 65 +++++-- man/drm-kms.xml | 342 +++++++++++++++++++++++++++++++++++ man/drm-memory.xml | 430 ++++++++++++++++++++++++++++++++++++++++++++ man/drm.xml | 137 ++++++++++++++ man/drmAvailable.man | 25 --- man/drmAvailable.xml | 75 ++++++++ man/drmHandleEvent.man | 45 ----- man/drmHandleEvent.xml | 102 +++++++++++ man/drmModeGetResources.man | 79 -------- man/drmModeGetResources.xml | 139 ++++++++++++++ 12 files changed, 1286 insertions(+), 181 deletions(-) create mode 100644 man/drm-kms.xml create mode 100644 man/drm-memory.xml create mode 100644 man/drm.xml delete mode 100644 man/drmAvailable.man create mode 100644 man/drmAvailable.xml delete mode 100644 man/drmHandleEvent.man create mode 100644 man/drmHandleEvent.xml delete mode 100644 man/drmModeGetResources.man create mode 100644 man/drmModeGetResources.xml
Signature · 1 line
1.7.12.1
PATCH 1/4 man: convert manpages to XML instead of plain troff
If we want to use the manpages in external documentation other than normal manpages, we should rather use XML. Furthermore, almost no-one knows troff today, anyway, and XML allows others to easily add more pages without having to learn troff.
--- .gitignore | 4 ++ configure.ac | 24 +------- man/Makefile.am | 58 ++++++++++++++---- man/drmAvailable.man | 25 -------- man/drmAvailable.xml | 75 ++++++++++++++++++++++++ man/drmHandleEvent.man | 45 -------------- man/drmHandleEvent.xml | 102 ++++++++++++++++++++++++++++++++ man/drmModeGetResources.man | 79 ------------------------- man/drmModeGetResources.xml | 139 ++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 370 insertions(+), 181 deletions(-) delete mode 100644 man/drmAvailable.man create mode 100644 man/drmAvailable.xml delete mode 100644 man/drmHandleEvent.man create mode 100644 man/drmHandleEvent.xml delete mode 100644 man/drmModeGetResources.man create mode 100644 man/drmModeGetResources.xml
.gitignore +4 -0
@@ -1,5 +1,9 @@ bsd-core/*/@ bsd-core/*/machine +*.1 +*.3 +*.5 +*.7 *.flags *.ko *.ko.cmd
configure.ac +3 -21
@@ -35,27 +35,6 @@ AM_MAINTAINER_MODE([enable]) # Enable quiet compiles on automake 1.11. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -if test x$LIB_MAN_SUFFIX = x ; then - LIB_MAN_SUFFIX=3 -fi -if test x$LIB_MAN_DIR = x ; then - LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' -fi -AC_SUBST([LIB_MAN_SUFFIX]) -AC_SUBST([LIB_MAN_DIR]) - -MAN_SUBSTS="\ - -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" |' \ - -e 's|__projectroot__|\$(prefix)|g' \ - -e 's|__apploaddir__|\$(appdefaultdir)|g' \ - -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ - -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ - -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ - -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ - -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ - -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" -AC_SUBST([MAN_SUBSTS]) - # Check for programs AC_PROG_CC
@@ -235,6 +214,9 @@ if test "x$HAVE_LIBUDEV" = xyes; then fi AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes]) +AC_PATH_PROG(XSLTPROC, xsltproc) +AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"]) + if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then # Check for atomic intrinsics AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives,
man/Makefile.am +47 -11
58 lines not on this page · raw message
man/drmAvailable.man deleted +0 -25
@@ -1,25 +0,0 @@ -.\" shorthand for double quote that works everywhere. -.ds q \N'34' -.TH drmAvailable __drivermansuffix__ __vendorversion__ -.SH NAME -drmAvailable \- determine whether a DRM kernel driver has been loaded -.SH SYNOPSIS -.nf -.B "#include <xf86drm.h>" - -.B "int drmAvailable(void);" -.fi -.SH DESCRIPTION -This function allows the caller to determine whether a kernel DRM driver is -loaded. - -.SH RETURN VALUE -If a DRM driver is currently loaded, this function returns 1. Otherwise 0 -is returned. - -.SH REPORTING BUGS -Bugs in this function should be reported to http://bugs.freedesktop.org under -the "Mesa" product, with "Other" or "libdrm" as the component. - -.SH "SEE ALSO" -drmOpen(__libmansuffix__)
man/drmAvailable.xml new file +75 -0
75 lines not on this page · raw message
man/drmHandleEvent.man deleted +0 -45
45 lines not on this page · raw message
man/drmHandleEvent.xml new file +102 -0
102 lines not on this page · raw message
man/drmModeGetResources.man deleted +0 -79
79 lines not on this page · raw message
man/drmModeGetResources.xml new file +139 -0
139 lines not on this page · raw message
Signature · 1 line
1.7.12.1
PATCH 2/4 man: add drm.7 overview page
In reply to David HerrmannThe drm.xml file compiles to drm.7 and is meant as a global overview page for libdrm. It is targeted to new users of libdrm and redirects to all other main man-pages.
--- man/Makefile.am | 1 + man/drm.xml | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 man/drm.xml
man/Makefile.am +1 -0
@@ -5,6 +5,7 @@ # MANPAGES = \ + drm.7 \ drmAvailable.3 \ drmHandleEvent.3 \ drmModeGetResources.3
man/drm.xml new file +137 -0
137 lines not on this page · raw message
Signature · 1 line
1.7.12.1
PATCH 3/4 man: add drm-kms overview page
In reply to David HerrmannThis is an overview page for KMS. It is again targeted at novice users that need redirection to the correct function man-pages.
--- man/Makefile.am | 1 + man/drm-kms.xml | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 343 insertions(+) create mode 100644 man/drm-kms.xml
man/Makefile.am +1 -0
@@ -6,6 +6,7 @@ MANPAGES = \ drm.7 \ + drm-kms.7 \ drmAvailable.3 \ drmHandleEvent.3 \ drmModeGetResources.3
man/drm-kms.xml new file +342 -0
342 lines not on this page · raw message
Signature · 1 line
1.7.12.1
PATCH 4/4 man: add drm-memory overview page
In reply to David HerrmannThis adds an overview page that describes Dumb-Buffers, TTM and GEM. It does not describe chipset-specific features. You should do that in the driver-manpages.
--- man/Makefile.am | 9 +- man/drm-memory.xml | 430 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 437 insertions(+), 2 deletions(-) create mode 100644 man/drm-memory.xml
man/Makefile.am +7 -2
@@ -7,10 +7,14 @@ MANPAGES = \ drm.7 \ drm-kms.7 \ + drm-memory.7 \ drmAvailable.3 \ drmHandleEvent.3 \ drmModeGetResources.3 -MANPAGES_ALIASES = +MANPAGES_ALIASES = \ + drm-mm.7 \ + drm-gem.7 \ + drm-ttm.7 XML_FILES = \ ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,$(MANPAGES)}}}}
@@ -32,7 +36,8 @@ XSLTPROC_FLAGS = \ XSLTPROC_PROCESS_MAN = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \ + $(SED) -i -e 's/^\.so \(.*\)\.\(.\)$$/\.so man\2\/\1\.\2/' $(MANPAGES_ALIASES) %.1: %.xml $(XSLTPROC_PROCESS_MAN)
man/drm-memory.xml new file +430 -0
430 lines not on this page · raw message
Signature · 1 line
1.7.12.1
Quoted 8 lines · On Fri, 28 Sep 2012 23:44:18 +0200 David Herrmann <[email protected]>…
Hi
This is revision 2 of the manpages for libdrm. I converted everything to docbook XML. This makes it easier to write them (troff is really hard to read) and allows us to integrate it into other documentation.
Other than that I only fixed typos and the small corrections you guys mentioned. Thanks for reviewing!
I went ahead and pushed these finally.
Can you just apply for an fdo account though so we can let you push things in the future? :)
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Hi Jesse
Quoted 5 lines · Jesse Barnes
Quoted 2 lines · On Fri, 28 Sep 2012 23:44:18 +0200 David Herrmann <[email protected]>…
Hi
Quoted 8 lines
Quoted 6 lines
This is revision 2 of the manpages for libdrm. I converted everything to docbook XML. This makes it easier to write them (troff is really hard to read) and allows us to integrate it into other documentation.
Other than that I only fixed typos and the small corrections you guys mentioned. Thanks for reviewing!
I went ahead and pushed these finally.
Thanks!
Quoted 2 lines
Can you just apply for an fdo account though so we can let you push things in the future? :)
I don't have a signed ssh key but I guess I can get it signed by some people at FOSDEM13. I will then apply for an account afterwards.
I also have some cleanup patches for the man-page build here that should be applied. I actually don't know why it fails on your machine but my rework should build them properly. I will send them shortly.
Thanks
David
Quoted 22 lines · On Thu, 10 Jan 2013 22:00:20 +0100 David Herrmann <[email protected]>…
Hi Jesse
Quoted 5 lines · Jesse Barnes
Quoted 2 lines · On Fri, 28 Sep 2012 23:44:18 +0200 David Herrmann <[email protected]>…
Hi
Quoted 8 lines
Quoted 6 lines
This is revision 2 of the manpages for libdrm. I converted everything to docbook XML. This makes it easier to write them (troff is really hard to read) and allows us to integrate it into other documentation.
Other than that I only fixed typos and the small corrections you guys mentioned. Thanks for reviewing!
I went ahead and pushed these finally.
Thanks!
Quoted 2 lines
Can you just apply for an fdo account though so we can let you push things in the future? :)
Quoted 6 lines
I don't have a signed ssh key but I guess I can get it signed by some people at FOSDEM13. I will then apply for an account afterwards.
I also have some cleanup patches for the man-page build here that should be applied. I actually don't know why it fails on your machine but my rework should build them properly. I will send them shortly.
Great, thanks. See you there!
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center