1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct v4l2_subscribed_event</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="mediadev.html#id-1.8.2" title="Video2Linux devices"><link rel="prev" href="API-struct-v4l2-kevent.html" title="struct v4l2_kevent"><link rel="next" href="API-struct-v4l2-flash-config.html" title="struct v4l2_flash_config"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct v4l2_subscribed_event</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-v4l2-kevent.html">Prev</a> </td><th width="60%" align="center">Video2Linux devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-v4l2-flash-config.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-v4l2-subscribed-event"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct v4l2_subscribed_event — 2 Internal struct representing a subscribed event. 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct v4l2_subscribed_event { 5 struct list_head list; 6 u32 type; 7 u32 id; 8 u32 flags; 9 struct v4l2_fh * fh; 10 struct list_head node; 11 const struct v4l2_subscribed_event_ops * ops; 12 unsigned elems; 13 unsigned first; 14 unsigned in_use; 15 struct v4l2_kevent events[]; 16}; </pre></div><div class="refsect1"><a name="id-1.8.2.59.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">list</span></dt><dd><p> 17 List node for the v4l2_fh->subscribed list. 18 </p></dd><dt><span class="term">type</span></dt><dd><p> 19 Event type. 20 </p></dd><dt><span class="term">id</span></dt><dd><p> 21 Associated object ID (e.g. control ID). 0 if there isn't any. 22 </p></dd><dt><span class="term">flags</span></dt><dd><p> 23 Copy of v4l2_event_subscription->flags. 24 </p></dd><dt><span class="term">fh</span></dt><dd><p> 25 Filehandle that subscribed to this event. 26 </p></dd><dt><span class="term">node</span></dt><dd><p> 27 List node that hooks into the object's event list (if there is one). 28 </p></dd><dt><span class="term">ops</span></dt><dd><p> 29 v4l2_subscribed_event_ops 30 </p></dd><dt><span class="term">elems</span></dt><dd><p> 31 The number of elements in the events array. 32 </p></dd><dt><span class="term">first</span></dt><dd><p> 33 The index of the events containing the oldest available event. 34 </p></dd><dt><span class="term">in_use</span></dt><dd><p> 35 The number of queued events. 36 </p></dd><dt><span class="term">events[]</span></dt><dd><p> 37 An array of <em class="parameter"><code>elems</code></em> events. 38 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-v4l2-kevent.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="mediadev.html#id-1.8.2">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-v4l2-flash-config.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct v4l2_kevent</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct v4l2_flash_config</span></td></tr></table></div></body></html> 39