1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>ioctl FE_SET_PROPERTY, FE_GET_PROPERTY</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="frontend_fcalls.html" title="Frontend Function Calls"><link rel="prev" href="FE_READ_STATUS.html" title="ioctl FE_READ_STATUS"><link rel="next" href="FE_DISEQC_RESET_OVERLOAD.html" title="ioctl FE_DISEQC_RESET_OVERLOAD"></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">ioctl FE_SET_PROPERTY, FE_GET_PROPERTY</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="FE_READ_STATUS.html">Prev</a> </td><th width="60%" align="center">Frontend Function Calls</th><td width="20%" align="right"> <a accesskey="n" href="FE_DISEQC_RESET_OVERLOAD.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="FE_GET_PROPERTY"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>FE_SET_PROPERTY, FE_GET_PROPERTY — FE_SET_PROPERTY sets one or more frontend properties.
2	FE_GET_PROPERTY returns one or more frontend properties.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td><td>int <var class="pdparam">fd</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">request</var>, </td></tr><tr><td> </td><td>struct dtv_properties *<var class="pdparam">argp</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="id-1.5.5.12.6.4"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>fd</code></em></span></dt><dd><p>File descriptor returned by <a class="link" href="frontend_f_open.html" title="DVB frontend open()"><code class="function">open()</code></a>.</p></dd><dt><span class="term"><em class="parameter"><code>request</code></em></span></dt><dd><p>FE_SET_PROPERTY, FE_GET_PROPERTY</p></dd><dt><span class="term"><em class="parameter"><code>argp</code></em></span></dt><dd><p>pointer to struct <a class="link" href="frontend-properties.html#dtv-properties" title="struct dtv_properties">dtv_properties</a></p></dd></dl></div></div><div class="refsect1"><a name="id-1.5.5.12.6.5"></a><h2>Description</h2><p>All DVB frontend devices support the
3<code class="constant">FE_SET_PROPERTY</code> and <code class="constant">FE_GET_PROPERTY</code>
4ioctls. The supported properties and statistics depends on the delivery system
5and on the device:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p><code class="constant">FE_SET_PROPERTY:</code></p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "><li class="listitem"><p>This ioctl is used to set one or more
6	frontend properties.</p></li><li class="listitem"><p>This is the basic command to request the frontend to tune into some
7    frequency and to start decoding the digital TV signal.</p></li><li class="listitem"><p>This call requires read/write access to the device.</p></li><li class="listitem"><p>At return, the values are updated to reflect the
8    actual parameters used.</p></li></ul></div></li><li class="listitem"><p><code class="constant">FE_GET_PROPERTY:</code></p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: circle; "><li class="listitem"><p>This ioctl is used to get properties and
9statistics from the frontend.</p></li><li class="listitem"><p>No properties are changed, and statistics aren't reset.</p></li><li class="listitem"><p>This call only requires read-only access to the device.</p></li></ul></div></li></ul></div><p>RETURN VALUE</p><p>On success <span class="returnvalue">0</span> is returned, on error <span class="returnvalue">-1</span> and the <code class="varname">errno</code> variable is set appropriately. The generic error codes are described at the <a class="link" href="gen_errors.html#gen-errors" title="Table 17.1. Generic error codes">Generic Error Codes</a> chapter.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="FE_READ_STATUS.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="frontend_fcalls.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="FE_DISEQC_RESET_OVERLOAD.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ioctl FE_READ_STATUS </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ioctl FE_DISEQC_RESET_OVERLOAD</td></tr></table></div></body></html>
10