The conversion script added some comments at the end. They point to the original DocBook files, with will be removed after the manual fixes. So, they'll be pointing to nowere. So, remove those comments. They'll be forever stored at the Kernel tree. So, if someone wants the references, it is just a matter of looking at the backlog. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
48 lines
773 B
ReStructuredText
48 lines
773 B
ReStructuredText
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
.. _func-close:
|
|
|
|
************
|
|
V4L2 close()
|
|
************
|
|
|
|
*man v4l2-close(2)*
|
|
|
|
Close a V4L2 device
|
|
|
|
|
|
Synopsis
|
|
========
|
|
|
|
.. code-block:: c
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
.. cpp:function:: int close( int fd )
|
|
|
|
Arguments
|
|
=========
|
|
|
|
``fd``
|
|
File descriptor returned by :ref:`open() <func-open>`.
|
|
|
|
|
|
Description
|
|
===========
|
|
|
|
Closes the device. Any I/O in progress is terminated and resources
|
|
associated with the file descriptor are freed. However data format
|
|
parameters, current input or output, control values or other properties
|
|
remain unchanged.
|
|
|
|
|
|
Return Value
|
|
============
|
|
|
|
The function returns 0 on success, -1 on failure and the ``errno`` is
|
|
set appropriately. Possible error codes:
|
|
|
|
EBADF
|
|
``fd`` is not a valid open file descriptor.
|