1
<refentry id="func-close">
3
<refentrytitle>V4L2 close()</refentrytitle>
8
<refname>v4l2-close</refname>
9
<refpurpose>Close a V4L2 device</refpurpose>
14
<funcsynopsisinfo>#include <unistd.h></funcsynopsisinfo>
16
<funcdef>int <function>close</function></funcdef>
17
<paramdef>int <parameter>fd</parameter></paramdef>
23
<title>Arguments</title>
27
<term><parameter>fd</parameter></term>
36
<title>Description</title>
38
<para>Closes the device. Any I/O in progress is terminated and
39
resources associated with the file descriptor are freed. However data
40
format parameters, current input or output, control values or other
41
properties remain unchanged.</para>
45
<title>Return Value</title>
47
<para>The function returns <returnvalue>0</returnvalue> on
48
success, <returnvalue>-1</returnvalue> on failure and the
49
<varname>errno</varname> is set appropriately. Possible error
54
<term><errorcode>EBADF</errorcode></term>
56
<para><parameter>fd</parameter> is not a valid open file
67
sgml-parent-document: "v4l2.sgml"