1 <refentry id="cec-func-close">
3 <refentrytitle>cec close()</refentrytitle>
8 <refname>cec-close</refname>
9 <refpurpose>Close a cec device</refpurpose>
14 <funcsynopsisinfo>#include <unistd.h></funcsynopsisinfo>
16 <funcdef>int <function>close</function></funcdef>
17 <paramdef>int <parameter>fd</parameter></paramdef>
23 <title>Arguments</title>
27 <term><parameter>fd</parameter></term>
36 <title>Description</title>
39 Note: this documents the proposed CEC API. This API is not yet finalized and
40 is currently only available as a staging kernel module.
43 <para>Closes the cec device. Resources associated with the file descriptor
44 are freed. The device configuration remain unchanged.</para>
48 <title>Return Value</title>
50 <para><function>close</function> returns 0 on success. On error, -1 is
51 returned, and <varname>errno</varname> is set appropriately. Possible error
56 <term><errorcode>EBADF</errorcode></term>
58 <para><parameter>fd</parameter> is not a valid open file descriptor.