1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct dmx_section_filter</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="ch06s02.html" title="Digital TV (DVB) devices"><link rel="prev" href="API-struct-dmx-ts-feed.html" title="struct dmx_ts_feed"><link rel="next" href="API-struct-dmx-section-feed.html" title="struct dmx_section_feed"></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 dmx_section_filter</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-dmx-ts-feed.html">Prev</a> </td><th width="60%" align="center">Digital TV (DVB) devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-dmx-section-feed.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-dmx-section-filter"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct dmx_section_filter — 2 Structure that describes a section filter 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct dmx_section_filter { 5 u8 filter_value[DMX_MAX_FILTER_SIZE]; 6 u8 filter_mask[DMX_MAX_FILTER_SIZE]; 7 u8 filter_mode[DMX_MAX_FILTER_SIZE]; 8 struct dmx_section_feed * parent; 9 void * priv; 10}; </pre></div><div class="refsect1"><a name="id-1.8.3.36.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">filter_value[DMX_MAX_FILTER_SIZE]</span></dt><dd><p> 11 Contains up to 16 bytes (128 bits) of the TS section header 12 that will be matched by the section filter 13 </p></dd><dt><span class="term">filter_mask[DMX_MAX_FILTER_SIZE]</span></dt><dd><p> 14 Contains a 16 bytes (128 bits) filter mask with the bits 15 specified by <em class="parameter"><code>filter_value</code></em> that will be used on the filter 16 match logic. 17 </p></dd><dt><span class="term">filter_mode[DMX_MAX_FILTER_SIZE]</span></dt><dd><p> 18 Contains a 16 bytes (128 bits) filter mode. 19 </p></dd><dt><span class="term">parent</span></dt><dd><p> 20 Pointer to struct dmx_section_feed. 21 </p></dd><dt><span class="term">priv</span></dt><dd><p> 22 Pointer to private data of the API client. 23 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.8.3.36.6"></a><h2>Description</h2><p> 24 </p><p> 25 26 The <em class="parameter"><code>filter_mask</code></em> controls which bits of <em class="parameter"><code>filter_value</code></em> are compared with 27 the section headers/payload. On a binary value of 1 in filter_mask, the 28 corresponding bits are compared. The filter only accepts sections that are 29 equal to filter_value in all the tested bit positions. 30</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-dmx-ts-feed.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-dmx-section-feed.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct dmx_ts_feed</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 dmx_section_feed</span></td></tr></table></div></body></html> 31