diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-09 19:17:52 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-09 19:17:52 -0200 |
commit | 9287d394a995ecc037b79e502fd8a995c4929f56 (patch) | |
tree | fdd6485423789f7dfec6189cc1260ab00e3cbb31 /v4l2-spec/func-close.sgml | |
parent | 803b1cde37f44f2d09bb97bef92d74ead3279578 (diff) | |
parent | 25c9b30402a26393ce698bd1addc01b7973928e2 (diff) | |
download | mediapointer-dvb-s2-9287d394a995ecc037b79e502fd8a995c4929f56.tar.gz mediapointer-dvb-s2-9287d394a995ecc037b79e502fd8a995c4929f56.tar.bz2 |
Bad: author doesn't exist!
Diffstat (limited to 'v4l2-spec/func-close.sgml')
-rw-r--r-- | v4l2-spec/func-close.sgml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/v4l2-spec/func-close.sgml b/v4l2-spec/func-close.sgml new file mode 100644 index 000000000..dfb41cbbb --- /dev/null +++ b/v4l2-spec/func-close.sgml @@ -0,0 +1,70 @@ +<refentry id="func-close"> + <refmeta> + <refentrytitle>V4L2 close()</refentrytitle> + &manvol; + </refmeta> + + <refnamediv> + <refname>v4l2-close</refname> + <refpurpose>Close a V4L2 device</refpurpose> + </refnamediv> + + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo>#include <unistd.h></funcsynopsisinfo> + <funcprototype> + <funcdef>int <function>close</function></funcdef> + <paramdef>int <parameter>fd</parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + + <refsect1> + <title>Arguments</title> + + <variablelist> + <varlistentry> + <term><parameter>fd</parameter></term> + <listitem> + <para>&fd;</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1> + <title>Description</title> + + <para>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.</para> + </refsect1> + + <refsect1> + <title>Return Value</title> + + <para>The function returns <returnvalue>0</returnvalue> on +success, <returnvalue>-1</returnvalue> on failure and the +<varname>errno</varname> is set appropriately. Possible error +codes:</para> + + <variablelist> + <varlistentry> + <term><errorcode>EBADF</errorcode></term> + <listitem> + <para><parameter>fd</parameter> is not a valid open file +descriptor.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> +</refentry> + +<!-- +Local Variables: +mode: sgml +sgml-parent-document: "v4l2.sgml" +indent-tabs-mode: nil +End: +--> |