From 6b7e45c7516b7fdfe85e7792f82624458dcb2ac6 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 28 Sep 2012 23:44:19 +0200 Subject: 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. Signed-off-by: David Herrmann --- man/drmHandleEvent.xml | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 man/drmHandleEvent.xml (limited to 'man/drmHandleEvent.xml') diff --git a/man/drmHandleEvent.xml b/man/drmHandleEvent.xml new file mode 100644 index 00000000..b1006e51 --- /dev/null +++ b/man/drmHandleEvent.xml @@ -0,0 +1,102 @@ + + + + + + + + Direct Rendering Manager + libdrm + September 2012 + + + Developer + David + Herrmann + dh.herrmann@googlemail.com + + + + + + drmHandleEvent + 3 + + + + drmHandleEvent + read and process pending DRM events + + + + + + #include <xf86drm.h> + + + int drmHandleEvent + int fd + drmEventContextPtr evctx + + + + + + + Description + drmHandleEvent processes outstanding DRM events + on the DRM file-descriptor passed as fd. This + function should be called after the DRM file-descriptor has polled + readable; it will read the events and use the passed-in + evctx structure to call function pointers + with the parameters noted below: + + +typedef struct _drmEventContext { + int version; + void (*vblank_handler) (int fd, + unsigned int sequence, + unsigned int tv_sec, + unsigned int tv_usec, + void *user_data) + void (*page_flip_handler) (int fd, + unsigned int sequence, + unsigned int tv_sec, + unsigned int tv_usec, + void *user_data) +} drmEventContext, *drmEventContextPtr; + + + + + + + + Return Value + drmHandleEvent returns 0 on + success, or if there is no data to read from the file-descriptor. + Returns -1 if the read on the file-descriptor fails + or returns less than a full event record. + + + + 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. + + + + See Also + + drm7, + drm-kms7, + drmModePageFlip3, + drmWaitVBlank3 + + + -- cgit v1.2.3