1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
12 **************************************
13 ioctl FE_SET_PROPERTY, FE_GET_PROPERTY
14 **************************************
19 FE_SET_PROPERTY - FE_GET_PROPERTY - FE_SET_PROPERTY sets one or more frontend properties. - FE_GET_PROPERTY returns one or more frontend properties.
25 .. c:function:: int ioctl( int fd, FE_GET_PROPERTY, struct dtv_properties *argp )
26 :name: FE_GET_PROPERTY
28 .. c:function:: int ioctl( int fd, FE_SET_PROPERTY, struct dtv_properties *argp )
29 :name: FE_SET_PROPERTY
36 File descriptor returned by :ref:`open() <frontend_f_open>`.
39 Pointer to struct :c:type:`dtv_properties`.
45 All Digital TV frontend devices support the ``FE_SET_PROPERTY`` and
46 ``FE_GET_PROPERTY`` ioctls. The supported properties and statistics
47 depends on the delivery system and on the device:
49 - ``FE_SET_PROPERTY:``
51 - This ioctl is used to set one or more frontend properties.
53 - This is the basic command to request the frontend to tune into
54 some frequency and to start decoding the digital TV signal.
56 - This call requires read/write access to the device.
60 At return, the values aren't updated to reflect the actual
61 parameters used. If the actual parameters are needed, an explicit
62 call to ``FE_GET_PROPERTY`` is needed.
64 - ``FE_GET_PROPERTY:``
66 - This ioctl is used to get properties and statistics from the
69 - No properties are changed, and statistics aren't reset.
71 - This call only requires read-only access to the device.
77 On success 0 is returned.
79 On error -1 is returned, and the ``errno`` variable is set
82 Generic error codes are described at the
83 :ref:`Generic Error Codes <gen-errors>` chapter.