1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct media_devnode</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="ch06s04.html" title="Media Controller devices"><link rel="prev" href="API-struct-media-device.html" title="struct media_device"><link rel="next" href="API-struct-media-entity-operations.html" title="struct media_entity_operations"></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 media_devnode</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-media-device.html">Prev</a> </td><th width="60%" align="center">Media Controller devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-media-entity-operations.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-media-devnode"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct media_devnode — 
2  Media device node
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct media_devnode {
5  const struct media_file_operations * fops;
6  struct device dev;
7  struct cdev cdev;
8  struct device * parent;
9  int minor;
10  unsigned long flags;
11  void (* release) (struct media_devnode *mdev);
12};  </pre></div><div class="refsect1"><a name="id-1.8.5.3.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">fops</span></dt><dd><p>
13pointer to struct media_file_operations with media device ops
14      </p></dd><dt><span class="term">dev</span></dt><dd><p>
15struct device pointer for the media controller device
16      </p></dd><dt><span class="term">cdev</span></dt><dd><p>
17struct cdev pointer character device
18      </p></dd><dt><span class="term">parent</span></dt><dd><p>
19parent device
20      </p></dd><dt><span class="term">minor</span></dt><dd><p>
21device node minor number
22      </p></dd><dt><span class="term">flags</span></dt><dd><p>
23flags, combination of the MEDIA_FLAG_* constants
24      </p></dd><dt><span class="term">release</span></dt><dd><p>
25release callback called at the end of <code class="function">media_devnode_release</code>
26      </p></dd></dl></div></div><div class="refsect1"><a name="id-1.8.5.3.6"></a><h2>Description</h2><p>
27   This structure represents a media-related device node.
28   </p><p>
29
30   The <em class="parameter"><code>parent</code></em> is a physical device. It must be set by core or device drivers
31   before registering the node.
32</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-media-device.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06s04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-media-entity-operations.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct media_device</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 media_entity_operations</span></td></tr></table></div></body></html>
33