diff options
Diffstat (limited to 'Documentation/linux_tv/media/mediactl/media-func-close.rst')
-rw-r--r-- | Documentation/linux_tv/media/mediactl/media-func-close.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Documentation/linux_tv/media/mediactl/media-func-close.rst b/Documentation/linux_tv/media/mediactl/media-func-close.rst index 109b831e4047..7ec0baa83482 100644 --- a/Documentation/linux_tv/media/mediactl/media-func-close.rst +++ b/Documentation/linux_tv/media/mediactl/media-func-close.rst @@ -6,12 +6,12 @@ media close() ************* -*man media-close(2)* +NAME +==== -Close a media device +media-close - Close a media device - -Synopsis +SYNOPSIS ======== .. code-block:: c @@ -21,21 +21,22 @@ Synopsis .. cpp:function:: int close( int fd ) -Arguments + +ARGUMENTS ========= ``fd`` File descriptor returned by :ref:`open() <func-open>`. -Description +DESCRIPTION =========== Closes the media device. Resources associated with the file descriptor are freed. The device configuration remain unchanged. -Return Value +RETURN VALUE ============ :ref:`close() <func-close>` returns 0 on success. On error, -1 is returned, and |