DRMHANDLEEVENT - Online Linux Manual PageSection : 3
Updated : September 2012
Source :
Note : Direct Rendering Manager

NAMEdrmHandleEvent − read and process pending DRM events

SYNOPSIS#include <xf86drm.h> int drmHandleEvent(int fd, drmEventContextPtr evctx);

DESCRIPTIONdrmHandleEvent 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 VALUEdrmHandleEvent 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 BUGSBugs in this function should be reported to ­https://gitlab.freedesktop.org/mesa/drm/−/issues

SEE ALSOdrm(7), drm−kms(7), drmModePageFlip(3), drmWaitVBlank(3)
0
Johanes Gumabo
Data Size   :   5,662 byte
man-drmHandleEvent.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 237,052
Visitor ID   :     :  
Visitor IP   :   3.15.144.162   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.