1 .\" shorthand for double quote that works everywhere.
3 .TH drmHandleEvent __drivermansuffix__ __vendorversion__
5 drmHandleEvent \- read and process pending DRM events
8 .B "#include <xf86drm.h>"
10 .B "typedef struct _drmEventContext {"
12 .BI " void (*vblank_handler)(int fd,"
13 .BI " unsigned int sequence,"
14 .BI " unsigned int tv_sec,"
15 .BI " unsigned int tv_usec,"
16 .BI " void *user_data);"
17 .BI " void (*page_flip_handler)(int fd,"
18 .BI " unsigned int sequence,"
19 .BI " unsigned int tv_sec,"
20 .BI " unsigned int tv_usec,"
21 .BI " void *user_data);"
22 .B "} drmEventContext, *drmEventContextPtr;"
24 .B "int drmHandleEvent(int fd, drmEventContextPtr evctx);"
27 This function will process outstanding DRM events on
29 , which must be an open DRM device. This function should be called after
30 the DRM file descriptor has polled readable; it will read the events and
33 structure to call function pointers with the parameters noted above.
36 Returns 0 on success, or if there is no data to read from the file descriptor.
37 Returns -1 if the read on the file descriptor fails or returns less than a
41 Bugs in this function should be reported to http://bugs.freedesktop.org under
42 the "Mesa" product, with "Other" or "libdrm" as the component.
45 drmModePageFlip(__libmansuffix__), drmWaitVBlank(__libmansuffix__)