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