2020-08-26 07:03:09 +00:00
|
|
|
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
|
2020-09-24 14:56:00 +00:00
|
|
|
.. c:namespace:: DTV.fe
|
2018-08-30 14:15:26 +00:00
|
|
|
|
2016-06-30 13:18:56 +00:00
|
|
|
.. _FE_READ_STATUS:
|
|
|
|
|
|
|
|
********************
|
|
|
|
ioctl FE_READ_STATUS
|
|
|
|
********************
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Name
|
2016-07-05 10:58:48 +00:00
|
|
|
====
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 10:58:48 +00:00
|
|
|
FE_READ_STATUS - Returns status information about the front-end. This call only requires - read-only access to the device
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Synopsis
|
2016-06-30 13:18:56 +00:00
|
|
|
========
|
|
|
|
|
2020-09-24 14:56:00 +00:00
|
|
|
.. c:macro:: FE_READ_STATUS
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2020-09-24 14:56:00 +00:00
|
|
|
``int ioctl(int fd, FE_READ_STATUS, unsigned int *status)``
|
2016-07-05 10:58:48 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Arguments
|
2016-06-30 13:18:56 +00:00
|
|
|
=========
|
|
|
|
|
|
|
|
``fd``
|
2020-09-24 14:56:00 +00:00
|
|
|
File descriptor returned by :c:func:`open()`.
|
2016-06-30 13:18:56 +00:00
|
|
|
|
|
|
|
``status``
|
|
|
|
pointer to a bitmask integer filled with the values defined by enum
|
2016-08-30 13:21:03 +00:00
|
|
|
:c:type:`fe_status`.
|
2016-06-30 13:18:56 +00:00
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Description
|
2016-06-30 13:18:56 +00:00
|
|
|
===========
|
|
|
|
|
2017-09-01 16:28:16 +00:00
|
|
|
All Digital TV frontend devices support the ``FE_READ_STATUS`` ioctl. It is
|
2016-06-30 13:18:56 +00: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 20:49:50 +00:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
The size of status is actually sizeof(enum fe_status), with
|
2016-07-10 14:57:43 +00:00
|
|
|
varies according with the architecture. This needs to be fixed in the
|
|
|
|
future.
|
2016-06-30 13:18:56 +00: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 13:21:03 +00:00
|
|
|
:c:type:`fe_status` values on a bitmask
|
|
|
|
|
2016-07-05 18:14:35 +00:00
|
|
|
Return Value
|
2016-07-05 14:36:55 +00:00
|
|
|
============
|
|
|
|
|
2017-09-01 16:15:43 +00: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 14:36:55 +00:00
|
|
|
:ref:`Generic Error Codes <gen-errors>` chapter.
|