Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / Documentation / media / uapi / dvb / frontend_f_close.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _frontend_f_close:
4
5 ********************
6 DVB frontend close()
7 ********************
8
9 Name
10 ====
11
12 fe-close - Close a frontend device
13
14
15 Synopsis
16 ========
17
18 .. code-block:: c
19
20     #include <unistd.h>
21
22
23 .. c:function:: int close( int fd )
24     :name: dvb-fe-close
25
26 Arguments
27 =========
28
29 ``fd``
30     File descriptor returned by :c:func:`open() <dvb-fe-open>`.
31
32
33 Description
34 ===========
35
36 This system call closes a previously opened front-end device. After
37 closing a front-end device, its corresponding hardware might be powered
38 down automatically.
39
40
41 Return Value
42 ============
43
44 The function returns 0 on success, -1 on failure and the ``errno`` is
45 set appropriately. Possible error codes:
46
47 EBADF
48     ``fd`` is not a valid open file descriptor.