1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct dmx_section_feed</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-section-filter.html" title="struct dmx_section_filter"><link rel="next" href="API-dmx-ts-cb.html" title="dmx_ts_cb"></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_feed</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-dmx-section-filter.html">Prev</a> </td><th width="60%" align="center">Digital TV (DVB) devices</th><td width="20%" align="right"> <a accesskey="n" href="API-dmx-ts-cb.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-dmx-section-feed"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct dmx_section_feed — 
2     Structure that contains a section feed filter
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct dmx_section_feed {
5  int is_filtering;
6  struct dmx_demux * parent;
7  void * priv;
8  int check_crc;
9  int (* set) (struct dmx_section_feed *feed,u16 pid,size_t circular_buffer_size,int check_crc);
10  int (* allocate_filter) (struct dmx_section_feed *feed,struct dmx_section_filter **filter);
11  int (* release_filter) (struct dmx_section_feed *feed,struct dmx_section_filter *filter);
12  int (* start_filtering) (struct dmx_section_feed *feed);
13  int (* stop_filtering) (struct dmx_section_feed *feed);
14};  </pre></div><div class="refsect1"><a name="id-1.8.3.37.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">is_filtering</span></dt><dd><p>
15   Set to non-zero when filtering in progress
16      </p></dd><dt><span class="term">parent</span></dt><dd><p>
17   pointer to struct dmx_demux
18      </p></dd><dt><span class="term">priv</span></dt><dd><p>
19   pointer to private data of the API client
20      </p></dd><dt><span class="term">check_crc</span></dt><dd><p>
21   If non-zero, check the CRC values of filtered sections.
22      </p></dd><dt><span class="term">set</span></dt><dd><p>
23   sets the section filter
24      </p></dd><dt><span class="term">allocate_filter</span></dt><dd><p>
25   This function is used to allocate a section filter on
26   the demux. It should only be called when no filtering
27   is in progress on this section feed. If a filter cannot
28   be allocated, the function fails with -ENOSPC.
29      </p></dd><dt><span class="term">release_filter</span></dt><dd><p>
30   This function releases all the resources of a
31   previously allocated section filter. The function
32   should not be called while filtering is in progress
33   on this section feed. After calling this function,
34   the caller should not try to dereference the filter
35   pointer.
36      </p></dd><dt><span class="term">start_filtering</span></dt><dd><p>
37   starts section filtering
38      </p></dd><dt><span class="term">stop_filtering</span></dt><dd><p>
39   stops section filtering
40      </p></dd></dl></div></div><div class="refsect1"><a name="id-1.8.3.37.6"></a><h2>Description</h2><p>
41   A TS feed is typically mapped to a hardware PID filter on the demux chip.
42   Using this API, the client can set the filtering properties to start/stop
43   filtering TS packets on a particular TS feed.
44</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-section-filter.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-dmx-ts-cb.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct dmx_section_filter</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">dmx_ts_cb</span></td></tr></table></div></body></html>
45