130 lines
3.0 KiB
HTML
130 lines
3.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of DRMHANDLEEVENT</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>DRMHANDLEEVENT</H1>
|
|
Section: Direct Rendering Manager (3)<BR>Updated: September 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
drmHandleEvent - read and process pending DRM events
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<B>
|
|
</B><PRE>
|
|
#include <<A HREF="file:///usr/include/xf86drm.h">xf86drm.h</A>>
|
|
</PRE>
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>int drmHandleEvent(int </B><I>fd</I><B>, drmEventContextPtr </B><I>evctx</I><B>);</B>
|
|
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>drmHandleEvent</B>
|
|
<DD>processes outstanding DRM events on the DRM file-descriptor passed as
|
|
<I>fd</I>. This function should be called after the DRM file-descriptor has polled readable; it will read the events and use the passed-in
|
|
<I>evctx</I>
|
|
structure to call function pointers with the parameters noted below:
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
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;
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
<P>
|
|
|
|
<B>drmHandleEvent</B>
|
|
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.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
<P>
|
|
|
|
Bugs in this function should be reported to <A HREF="https://bugs.freedesktop.org/enter_bug.cgi?product=DRI">https://bugs.freedesktop.org/enter_bug.cgi?product=DRI</A>&component=libdrm under the "DRI" product, component "libdrm"
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?7+drm">drm</A></B>(7),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+drm-kms">drm-kms</A></B>(7),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+drmModePageFlip">drmModePageFlip</A></B>(3),
|
|
<B><A HREF="/cgi-bin/man/man2html?3+drmWaitVBlank">drmWaitVBlank</A></B>(3)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">REPORTING BUGS</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:39 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|