Commit 6d172492 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] DocBook: Add a chapter to describe media errors

There are several errors reported by V4L that aren't described.
They can occur on almost all ioctl's. Instead of adding them
into each ioctl, create a new chapter.

For V4L, the new chapter will automatically be listed on all
places, as there's a macro used everywhere there.
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 28720944
...@@ -8,5 +8,7 @@ ...@@ -8,5 +8,7 @@
*.dvi *.dvi
*.log *.log
*.out *.out
*.png
*.gif
media-indices.tmpl media-indices.tmpl
media-entities.tmpl media-entities.tmpl
...@@ -100,23 +100,59 @@ STRUCTS = \ ...@@ -100,23 +100,59 @@ STRUCTS = \
$(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-mediabus.h) $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/linux/v4l2-mediabus.h)
ERRORS = \ ERRORS = \
E2BIG \
EACCES \ EACCES \
EAGAIN \ EAGAIN \
EBADF \ EBADF \
EBADFD \
EBADR \
EBADRQC \
EBUSY \ EBUSY \
ECHILD \
ECONNRESET \
EDEADLK \
EDOM \
EEXIST \
EFAULT \ EFAULT \
EIO \ EFBIG \
EILSEQ \
EINIT \
EINPROGRESS \
EINTR \ EINTR \
EINVAL \ EINVAL \
EIO \
EMFILE \
ENFILE \ ENFILE \
ENOBUFS \
ENODATA \
ENODEV \
ENOENT \
ENOIOCTLCMD \
ENOMEM \ ENOMEM \
ENOSPC \ ENOSPC \
ENOSR \
ENOSYS \
ENOTSUP \
ENOTSUPP \
ENOTTY \ ENOTTY \
ENXIO \ ENXIO \
EMFILE \ EOPNOTSUPP \
EOVERFLOW \
EPERM \ EPERM \
ERANGE \
EPIPE \ EPIPE \
EPROTO \
ERANGE \
EREMOTE \
EREMOTEIO \
ERESTART \
ERESTARTSYS \
ESHUTDOWN \
ESPIPE \
ETIME \
ETIMEDOUT \
EUSERS \
EWOULDBLOCK \
EXDEV \
ESCAPE = \ ESCAPE = \
-e "s/&/\\&amp;/g" \ -e "s/&/\\&amp;/g" \
......
<title>Generic Error Codes</title>
<table frame="none" pgwide="1" id="gen-errors">
<title>Generic error codes</title>
<tgroup cols="2">
&cs-str;
<tbody valign="top">
<row>
<entry>EBUSY</entry>
<entry>The ioctl can't be handled because the device is busy. This is
typically return while device is streaming, and an ioctl tried to
change something that would affect the stream, or would require the
usage of a hardware resource that was already allocated.</entry>
</row>
</tbody>
</tgroup>
</table>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<!ENTITY ie "i.&nbsp;e."> <!ENTITY ie "i.&nbsp;e.">
<!ENTITY fd "File descriptor returned by <link linkend='func-open'><function>open()</function></link>."> <!ENTITY fd "File descriptor returned by <link linkend='func-open'><function>open()</function></link>.">
<!ENTITY i2c "I<superscript>2</superscript>C"> <!ENTITY i2c "I<superscript>2</superscript>C">
<!ENTITY return-value "<title>Return Value</title><para>On success <returnvalue>0</returnvalue> is returned, on error <returnvalue>-1</returnvalue> and the <varname>errno</varname> variable is set appropriately:</para>"> <!ENTITY return-value "<title>Return Value</title><para>On success <returnvalue>0</returnvalue> is returned, on error <returnvalue>-1</returnvalue> and the <varname>errno</varname> variable is set appropriately. The generic error codes are described at the <link linkend='gen-errors'>Generic Error Codes</link> chapter.</para>">
<!ENTITY manvol "<manvolnum>2</manvolnum>"> <!ENTITY manvol "<manvolnum>2</manvolnum>">
<!-- Table templates: structs, structs w/union, defines. --> <!-- Table templates: structs, structs w/union, defines. -->
...@@ -110,6 +110,11 @@ Foundation. A copy of the license is included in the chapter entitled ...@@ -110,6 +110,11 @@ Foundation. A copy of the license is included in the chapter entitled
&sub-media-controller; &sub-media-controller;
</part> </part>
<chapter id="gen_errors">
&sub-gen-errors;
</chapter>
&sub-fdl-appendix; &sub-fdl-appendix;
</book> </book>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment