dev-event.xml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <title>Event Interface</title>
  2. <para>The V4L2 event interface provides means for user to get
  3. immediately notified on certain conditions taking place on a device.
  4. This might include start of frame or loss of signal events, for
  5. example.
  6. </para>
  7. <para>To receive events, the events the user is interested in first must
  8. be subscribed using the &VIDIOC-SUBSCRIBE-EVENT; ioctl. Once an event is
  9. subscribed, the events of subscribed types are dequeueable using the
  10. &VIDIOC-DQEVENT; ioctl. Events may be unsubscribed using
  11. VIDIOC_UNSUBSCRIBE_EVENT ioctl. The special event type V4L2_EVENT_ALL may
  12. be used to unsubscribe all the events the driver supports.</para>
  13. <para>The event subscriptions and event queues are specific to file
  14. handles. Subscribing an event on one file handle does not affect
  15. other file handles.
  16. </para>
  17. <para>The information on dequeueable events is obtained by using select or
  18. poll system calls on video devices. The V4L2 events use POLLPRI events on
  19. poll system call and exceptions on select system call. </para>
  20. <!--
  21. Local Variables:
  22. mode: sgml
  23. sgml-parent-document: "v4l2.sgml"
  24. indent-tabs-mode: nil
  25. End:
  26. -->