1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct media_entity_operations</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-devnode.html" title="struct media_devnode"><link rel="next" href="uart16x50.html" title="Chapter 7. 16x50 UART Driver"></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_entity_operations</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-media-devnode.html">Prev</a> </td><th width="60%" align="center">Media Controller devices</th><td width="20%" align="right"> <a accesskey="n" href="uart16x50.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-media-entity-operations"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct media_entity_operations — 2 Media entity operations 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct media_entity_operations { 5 int (* link_setup) (struct media_entity *entity,const struct media_pad *local,const struct media_pad *remote, u32 flags); 6 int (* link_validate) (struct media_link *link); 7}; </pre></div><div class="refsect1"><a name="id-1.8.5.4.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">link_setup</span></dt><dd><p> 8Notify the entity of link changes. The operation can 9return an error, in which case link setup will be 10cancelled. Optional. 11 </p></dd><dt><span class="term">link_validate</span></dt><dd><p> 12Return whether a link is valid from the entity point of 13view. The <code class="function">media_entity_pipeline_start</code> function 14validates all links by calling this operation. Optional. 15 </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-media-devnode.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="uart16x50.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct media_devnode</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. 16x50 UART Driver</td></tr></table></div></body></html> 16