summaryrefslogtreecommitdiff
path: root/Documentation/linux_tv/media/mediactl/media-func-open.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/linux_tv/media/mediactl/media-func-open.rst')
-rw-r--r--Documentation/linux_tv/media/mediactl/media-func-open.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/linux_tv/media/mediactl/media-func-open.rst b/Documentation/linux_tv/media/mediactl/media-func-open.rst
index 353114fcb7ca..43b9ddc5c38f 100644
--- a/Documentation/linux_tv/media/mediactl/media-func-open.rst
+++ b/Documentation/linux_tv/media/mediactl/media-func-open.rst
@@ -6,12 +6,13 @@
media open()
************
-NAME
+Name
====
media-open - Open a media device
-SYNOPSIS
+
+Synopsis
========
.. code-block:: c
@@ -22,7 +23,7 @@ SYNOPSIS
.. cpp:function:: int open( const char *device_name, int flags )
-ARGUMENTS
+Arguments
=========
``device_name``
@@ -33,7 +34,7 @@ ARGUMENTS
Other flags have no effect.
-DESCRIPTION
+Description
===========
To open a media device applications call :ref:`open() <func-open>` with the
@@ -45,7 +46,7 @@ configuration will result in an error, and ``errno`` will be set to
EBADF.
-RETURN VALUE
+Return Value
============
:ref:`open() <func-open>` returns the new file descriptor on success. On error,