2016-06-30 15:18:56 +02:00
.. -*- coding: utf-8; mode: rst -*-
.. _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
===========
All DVB frontend devices support the `` FE_READ_STATUS `` ioctl. It is
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.