2018-08-30 10:15:26 -04:00
.. Permission is granted to copy, distribute and/or modify this
.. document under the terms of the GNU Free Documentation License,
.. Version 1.1 or any later version published by the Free Software
.. Foundation, with no Invariant Sections, no Front-Cover Texts
.. and no Back-Cover Texts. A copy of the license is included at
2020-03-04 10:21:39 +01:00
.. Documentation/userspace-api/media/fdl-appendix.rst.
2018-08-30 10:15:26 -04:00
..
.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
2016-06-30 15:18:56 +02:00
.. _FE_READ_STATUS:
***** ***** ***** *****
ioctl FE_READ_STATUS
***** ***** ***** *****
2016-07-05 15:14:35 -03:00
Name
2016-07-05 07:58:48 -03:00
====
2016-06-30 15:18:56 +02:00
2016-07-05 07:58:48 -03:00
FE_READ_STATUS - Returns status information about the front-end. This call only requires - read-only access to the device
2016-06-30 15:18:56 +02:00
2016-07-05 15:14:35 -03:00
Synopsis
2016-06-30 15:18:56 +02:00
========
2016-08-19 16:56:15 -03:00
.. c:function :: int ioctl( int fd, FE_READ_STATUS, unsigned int *status )
:name: FE_READ_STATUS
2016-06-30 15:18:56 +02:00
2016-07-05 07:58:48 -03:00
2016-07-05 15:14:35 -03:00
Arguments
2016-06-30 15:18:56 +02:00
=========
`` fd ``
File descriptor returned by :ref: `open() <frontend_f_open>` .
`` status ``
pointer to a bitmask integer filled with the values defined by enum
2016-08-30 10:21:03 -03:00
:c:type: `fe_status` .
2016-06-30 15:18:56 +02:00
2016-07-05 15:14:35 -03:00
Description
2016-06-30 15:18:56 +02:00
===========
2017-09-01 12:28:16 -04:00
All Digital TV frontend devices support the `` FE_READ_STATUS `` ioctl. It is
2016-06-30 15:18:56 +02:00
used to check about the locking status of the frontend after being
tuned. The ioctl takes a pointer to an integer where the status will be
written.
2016-08-15 17:49:50 -03:00
.. note ::
The size of status is actually sizeof(enum fe_status), with
2016-07-10 11:57:43 -03:00
varies according with the architecture. This needs to be fixed in the
future.
2016-06-30 15:18:56 +02:00
2016-07-05 07:58:48 -03:00
2016-06-30 15:18:56 +02:00
int fe_status
=============
The fe_status parameter is used to indicate the current state and/or
state changes of the frontend hardware. It is produced using the enum
2016-08-30 10:21:03 -03:00
:c:type: `fe_status` values on a bitmask
2016-07-05 15:14:35 -03:00
Return Value
2016-07-05 11:36:55 -03:00
============
2017-09-01 12:15:43 -04:00
On success 0 is returned.
On error -1 is returned, and the `` errno `` variable is set
appropriately.
Generic error codes are described at the
2016-07-05 11:36:55 -03:00
:ref: `Generic Error Codes <gen-errors>` chapter.