head 1.2; access; symbols netbsd-8-3-RELEASE:1.1.1.1 netbsd-9-4-RELEASE:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.2 netbsd-9-2-RELEASE:1.1.1.2 libdrm-2-4-102:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.2 netbsd-8-2-RELEASE:1.1.1.1 libdrm-2-4-100:1.1.1.2 netbsd-9-0-RELEASE:1.1.1.2 netbsd-9-0-RC2:1.1.1.2 netbsd-9-0-RC1:1.1.1.2 netbsd-9:1.1.1.2.0.2 netbsd-9-base:1.1.1.2 libdrm-2-4-99:1.1.1.2 netbsd-8-1-RELEASE:1.1.1.1 netbsd-8-1-RC1:1.1.1.1 libdrm-2-4-97:1.1.1.2 libdrm-2-4-96:1.1.1.2 netbsd-7-2-RELEASE:1.1.1.1 netbsd-8-0-RELEASE:1.1.1.1 netbsd-8-0-RC2:1.1.1.1 netbsd-8-0-RC1:1.1.1.1 netbsd-7-1-2-RELEASE:1.1.1.1 libdrm-2-4-91:1.1.1.2 netbsd-7-1-1-RELEASE:1.1.1.1 libdrm-2-4-83:1.1.1.2 netbsd-8:1.1.1.1.0.8 netbsd-8-base:1.1.1.1 netbsd-7-1:1.1.1.1.0.6 netbsd-7-1-RELEASE:1.1.1.1 libdrm-2-4-75:1.1.1.1 netbsd-7-1-RC2:1.1.1.1 netbsd-7-1-RC1:1.1.1.1 netbsd-7-0-2-RELEASE:1.1.1.1 libdrm-2-4-70:1.1.1.1 netbsd-7-0-1-RELEASE:1.1.1.1 netbsd-7-0:1.1.1.1.0.4 netbsd-7-0-RELEASE:1.1.1.1 netbsd-7-0-RC3:1.1.1.1 netbsd-7-0-RC2:1.1.1.1 libdrm-2-4-62:1.1.1.1 netbsd-7-0-RC1:1.1.1.1 libdrm-2-4-59:1.1.1.1 libdrm-2-4-58:1.1.1.1 netbsd-7:1.1.1.1.0.2 netbsd-7-base:1.1.1.1 libdrm-2-4-54:1.1.1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1 libdrm-2-4-52:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2021.04.27.03.02.37; author mrg; state dead; branches; next 1.1; commitid S0gR5s3v900EvSQC; 1.1 date 2014.03.17.07.51.42; author mrg; state Exp; branches 1.1.1.1; next ; commitid e8QhQJtwbPKsC1tx; 1.1.1.1 date 2014.03.17.07.51.42; author mrg; state Exp; branches; next 1.1.1.2; commitid e8QhQJtwbPKsC1tx; 1.1.1.2 date 2017.08.29.06.30.18; author mrg; state Exp; branches; next ; commitid SwkxfytMMoJtD45A; desc @@ 1.2 log @merge libdrm 2.4.105. @ text @ 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 @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of libdrm-2.4.52 @ text @@ 1.1.1.2 log @initial import of libdrm-2.4.83 @ text @d89 2 a90 2 https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=libdrm under the "DRI" product, component "libdrm" @