<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>release_filter()</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API" /><link rel="up" href="dvb_kdapi.html" title="Chapter 15. Kernel Demux API" /><link rel="prev" href="ch15s08.html" title="allocate_filter()" /><link rel="next" href="ch15s10.html" title="start_filtering()" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">release_filter()</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch15s08.html">Prev</a> </td><th width="60%" align="center">Chapter 15. Kernel Demux API</th><td width="20%" align="right"> <a accesskey="n" href="ch15s10.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm140469979268832"></a>release_filter()</h2></div></div></div><p>DESCRIPTION </p><div class="informaltable"><table border="1"><colgroup><col /></colgroup><tbody><tr><td align="char"> <p>This function releases all the resources of a previously allocated section filter. The function should not be called while filtering is in progress on this section feed. After calling this function, the caller should not try to dereference the filter pointer.</p> </td></tr></tbody></table></div><p>SYNOPSIS </p><div class="informaltable"><table border="1"><colgroup><col /></colgroup><tbody><tr><td align="char"> <p>int release_filter ( dmx_section_feed_t⋆ feed, dmx_section_filter_t⋆ filter);</p> </td></tr></tbody></table></div><p>PARAMETERS </p><div class="informaltable"><table border="1"><colgroup><col /><col /></colgroup><tbody><tr><td align="char"> <p>dmx_section_feed_t* feed</p> </td><td align="char"> <p>Pointer to the section feed API and instance data.</p> </td></tr><tr><td align="char"> <p>dmx_section_filter_t* filter</p> </td><td align="char"> <p>I/O Pointer to the instance data of a section filter.</p> </td></tr></tbody></table></div><p>RETURNS </p><div class="informaltable"><table border="1"><colgroup><col /><col /></colgroup><tbody><tr><td align="char"> <p>0</p> </td><td align="char"> <p>The function was completed without errors.</p> </td></tr><tr><td align="char"> <p>-ENODEV</p> </td><td align="char"> <p>No such filter allocated.</p> </td></tr><tr><td align="char"> <p>-EINVAL</p> </td><td align="char"> <p>Bad parameter.</p> </td></tr></tbody></table></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch15s08.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="dvb_kdapi.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch15s10.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">allocate_filter() </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> start_filtering()</td></tr></table></div></body></html>