1 <refentry id="vidioc-dqevent">
3 <refentrytitle>ioctl VIDIOC_DQEVENT</refentrytitle>
8 <refname>VIDIOC_DQEVENT</refname>
9 <refpurpose>Dequeue event</refpurpose>
15 <funcdef>int <function>ioctl</function></funcdef>
16 <paramdef>int <parameter>fd</parameter></paramdef>
17 <paramdef>int <parameter>request</parameter></paramdef>
18 <paramdef>struct v4l2_event
19 *<parameter>argp</parameter></paramdef>
25 <title>Arguments</title>
29 <term><parameter>fd</parameter></term>
35 <term><parameter>request</parameter></term>
37 <para>VIDIOC_DQEVENT</para>
41 <term><parameter>argp</parameter></term>
50 <title>Description</title>
52 <para>Dequeue an event from a video device. No input is required
53 for this ioctl. All the fields of the &v4l2-event; structure are
54 filled by the driver. The file handle will also receive exceptions
55 which the application may get by e.g. using the select system
58 <table frame="none" pgwide="1" id="v4l2-event">
59 <title>struct <structname>v4l2_event</structname></title>
65 <entry><structfield>type</structfield></entry>
67 <entry>Type of the event.</entry>
71 <entry><structfield>u</structfield></entry>
77 <entry>&v4l2-event-vsync;</entry>
78 <entry><structfield>vsync</structfield></entry>
79 <entry>Event data for event V4L2_EVENT_VSYNC.
84 <entry>&v4l2-event-ctrl;</entry>
85 <entry><structfield>ctrl</structfield></entry>
86 <entry>Event data for event V4L2_EVENT_CTRL.
92 <entry><structfield>data</structfield>[64]</entry>
93 <entry>Event data. Defined by the event type. The union
94 should be used to define easily accessible type for
99 <entry><structfield>pending</structfield></entry>
101 <entry>Number of pending events excluding this one.</entry>
105 <entry><structfield>sequence</structfield></entry>
107 <entry>Event sequence number. The sequence number is
108 incremented for every subscribed event that takes place.
109 If sequence numbers are not contiguous it means that
110 events have been lost.
114 <entry>struct timespec</entry>
115 <entry><structfield>timestamp</structfield></entry>
117 <entry>Event timestamp.</entry>
121 <entry><structfield>id</structfield></entry>
123 <entry>The ID associated with the event source. If the event does not
124 have an associated ID (this depends on the event type), then this
129 <entry><structfield>reserved</structfield>[8]</entry>
131 <entry>Reserved for future extensions. Drivers must set
132 the array to zero.</entry>