1 .. -*- coding: utf-8; mode: rst -*-
12 cec-close - Close a cec device
23 .. cpp:function:: int close( int fd )
29 File descriptor returned by :ref:`open() <func-open>`.
37 This documents the proposed CEC API. This API is not yet finalized
38 and is currently only available as a staging kernel module.
40 Closes the cec device. Resources associated with the file descriptor are
41 freed. The device configuration remain unchanged.
47 :c:func:`close()` returns 0 on success. On error, -1 is returned, and
48 ``errno`` is set appropriately. Possible error codes are:
51 ``fd`` is not a valid open file descriptor.