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>`.
35 .. note:: This documents the proposed CEC API. This API is not yet finalized
36 and is currently only available as a staging kernel module.
38 Closes the cec device. Resources associated with the file descriptor are
39 freed. The device configuration remain unchanged.
45 :c:func:`close()` returns 0 on success. On error, -1 is returned, and
46 ``errno`` is set appropriately. Possible error codes are:
49 ``fd`` is not a valid open file descriptor.