Merge remote-tracking branch 'lightnvm/for-next'
[deliverable/linux.git] / Documentation / media / uapi / cec / cec-func-close.rst
... / ...
CommitLineData
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _cec-func-close:
4
5***********
6cec close()
7***********
8
9Name
10====
11
12cec-close - Close a cec device
13
14
15Synopsis
16========
17
18.. code-block:: c
19
20 #include <unistd.h>
21
22
23.. c:function:: int close( int fd )
24 :name: cec-close
25
26Arguments
27=========
28
29``fd``
30 File descriptor returned by :c:func:`open() <cec-open>`.
31
32
33Description
34===========
35
36.. note::
37
38 This documents the proposed CEC API. This API is not yet finalized
39 and is currently only available as a staging kernel module.
40
41Closes the cec device. Resources associated with the file descriptor are
42freed. The device configuration remain unchanged.
43
44
45Return Value
46============
47
48:c:func:`close()` returns 0 on success. On error, -1 is returned, and
49``errno`` is set appropriately. Possible error codes are:
50
51``EBADF``
52 ``fd`` is not a valid open file descriptor.
This page took 0.025119 seconds and 5 git commands to generate.