Path: blob/master/Documentation/DocBook/v4l/dev-event.xml
10821 views
<title>Event Interface</title>12<para>The V4L2 event interface provides means for user to get3immediately notified on certain conditions taking place on a device.4This might include start of frame or loss of signal events, for5example.6</para>78<para>To receive events, the events the user is interested in first must9be subscribed using the &VIDIOC-SUBSCRIBE-EVENT; ioctl. Once an event is10subscribed, the events of subscribed types are dequeueable using the11&VIDIOC-DQEVENT; ioctl. Events may be unsubscribed using12VIDIOC_UNSUBSCRIBE_EVENT ioctl. The special event type V4L2_EVENT_ALL may13be used to unsubscribe all the events the driver supports.</para>1415<para>The event subscriptions and event queues are specific to file16handles. Subscribing an event on one file handle does not affect17other file handles.18</para>1920<para>The information on dequeueable events is obtained by using select or21poll system calls on video devices. The V4L2 events use POLLPRI events on22poll system call and exceptions on select system call. </para>2324<!--25Local Variables:26mode: sgml27sgml-parent-document: "v4l2.sgml"28indent-tabs-mode: nil29End:30-->313233