60 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2.. c:namespace:: DTV.fe3 4.. _FE_GET_INFO:5 6*****************7ioctl FE_GET_INFO8*****************9 10Name11====12 13FE_GET_INFO - Query Digital TV frontend capabilities and returns information14about the - front-end. This call only requires read-only access to the device.15 16Synopsis17========18 19.. c:macro:: FE_GET_INFO20 21``int ioctl(int fd, FE_GET_INFO, struct dvb_frontend_info *argp)``22 23Arguments24=========25 26``fd``27 File descriptor returned by :c:func:`open()`.28 29``argp``30 pointer to struct :c:type:`dvb_frontend_info`31 32Description33===========34 35All Digital TV frontend devices support the :ref:`FE_GET_INFO` ioctl. It is36used to identify kernel devices compatible with this specification and to37obtain information about driver and hardware capabilities. The ioctl38takes a pointer to dvb_frontend_info which is filled by the driver.39When the driver is not compatible with this specification the ioctl40returns an error.41 42frontend capabilities43=====================44 45Capabilities describe what a frontend can do. Some capabilities are46supported only on some specific frontend types.47 48The frontend capabilities are described at :c:type:`fe_caps`.49 50Return Value51============52 53On success 0 is returned.54 55On error -1 is returned, and the ``errno`` variable is set56appropriately.57 58Generic error codes are described at the59:ref:`Generic Error Codes <gen-errors>` chapter.60