summaryrefslogtreecommitdiff
path: root/Documentation/linux_tv/media/v4l/func-close.rst
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-05 07:58:48 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-05 10:53:13 -0300
commit586027cefac593d1a17f86e2236694357ebc6670 (patch)
treee84d6cedfe2496b4b3c4ba4c2c2eb2640cd342fa /Documentation/linux_tv/media/v4l/func-close.rst
parent47d23e363fb034f32551f5fe85add77ceba98d3b (diff)
doc-rst: linux_tv: reformat all syscall pages
The syscall pages are written to be used also as man-pages. However, they don't match the format used by kernel-doc generated pages from DocBook. Rewrite them to match it. One side effect is that now all such pages at the book will have the same format, reducing the format differences between DVB and the other parts of the book. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/linux_tv/media/v4l/func-close.rst')
-rw-r--r--Documentation/linux_tv/media/v4l/func-close.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Documentation/linux_tv/media/v4l/func-close.rst b/Documentation/linux_tv/media/v4l/func-close.rst
index fac5ec14a8e6..81401cd26d12 100644
--- a/Documentation/linux_tv/media/v4l/func-close.rst
+++ b/Documentation/linux_tv/media/v4l/func-close.rst
@@ -6,12 +6,12 @@
V4L2 close()
************
-*man v4l2-close(2)*
+NAME
+====
-Close a V4L2 device
+v4l2-close - Close a V4L2 device
-
-Synopsis
+SYNOPSIS
========
.. code-block:: c
@@ -21,14 +21,15 @@ Synopsis
.. cpp:function:: int close( int fd )
-Arguments
+
+ARGUMENTS
=========
``fd``
File descriptor returned by :ref:`open() <func-open>`.
-Description
+DESCRIPTION
===========
Closes the device. Any I/O in progress is terminated and resources
@@ -37,7 +38,7 @@ parameters, current input or output, control values or other properties
remain unchanged.
-Return Value
+RETURN VALUE
============
The function returns 0 on success, -1 on failure and the ``errno`` is