0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.fe
0003
0004 .. _frontend_f_close:
0005
0006 ***************************
0007 Digital TV frontend close()
0008 ***************************
0009
0010 Name
0011 ====
0012
0013 fe-close - Close a frontend device
0014
0015 Synopsis
0016 ========
0017
0018 .. code-block:: c
0019
0020 #include <unistd.h>
0021
0022 .. c:function:: int close( int fd )
0023
0024 Arguments
0025 =========
0026
0027 ``fd``
0028 File descriptor returned by :c:func:`open()`.
0029
0030 Description
0031 ===========
0032
0033 This system call closes a previously opened front-end device. After
0034 closing a front-end device, its corresponding hardware might be powered
0035 down automatically.
0036
0037 Return Value
0038 ============
0039
0040 On success 0 is returned.
0041
0042 On error -1 is returned, and the ``errno`` variable is set
0043 appropriately.
0044
0045 Generic error codes are described at the
0046 :ref:`Generic Error Codes <gen-errors>` chapter.