* [PATCH 1/2] [media] DocBook: some fixes for DVB FE open()
@ 2015-06-01 9:12 Mauro Carvalho Chehab
2015-06-01 9:12 ` [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments Mauro Carvalho Chehab
2015-06-01 9:15 ` [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Hans Verkuil
0 siblings, 2 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2015-06-01 9:12 UTC (permalink / raw)
To: Linux Media Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Jonathan Corbet,
Hans Verkuil, linux-doc
The changeset dc9ef7d11207 change the open() ioctl documentation to
match the V4L2 open(). However, some cut-and-pasted stuff doesn't
match what actually happens at the DVB core.
So, fix the documentation entry to be more accurate with the DVB
frontend open() specifics.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
diff --git a/Documentation/DocBook/media/dvb/frontend.xml b/Documentation/DocBook/media/dvb/frontend.xml
index c7fa3d8bff5c..9d8e95cd9694 100644
--- a/Documentation/DocBook/media/dvb/frontend.xml
+++ b/Documentation/DocBook/media/dvb/frontend.xml
@@ -61,7 +61,7 @@ specification is available at
<refentry id="frontend_f_open">
<refmeta>
- <refentrytitle>open()</refentrytitle>
+ <refentrytitle>DVB frontend open()</refentrytitle>
&manvol;
</refmeta>
@@ -94,20 +94,19 @@ specification is available at
<varlistentry>
<term><parameter>flags</parameter></term>
<listitem>
- <para>Open flags. Access mode must be
-<constant>O_RDWR</constant>. This is just a technicality, input devices
-still support only reading and output devices only writing.</para>
- <para>When the <constant>O_NONBLOCK</constant> flag is
-given, the read() function will return the &EAGAIN; when no data is available,
-otherwise these functions block until data becomes
-available. Other flags have no effect.</para>
+ <para>Open flags. Access can either be
+ <constant>O_RDWR</constant> or <constant>O_RDONLY</constant>.</para>
+ <para>Multiple opens are allowed with <constant>O_RDONLY</constant>. In this mode, only query and read ioctls are allowed.</para>
+ <para>Only one open is allowed in <constant>O_RDWR</constant>. In this mode, all ioctls are allowed.</para>
+ <para>When the <constant>O_NONBLOCK</constant> flag is given, the system calls may return &EAGAIN; when no data is available or when the device driver is temporarily busy.</para>
+ <para>Other flags have no effect.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Description</title>
-<para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
+ <para>This system call opens a named frontend device (<constant>/dev/dvb/adapter?/frontend?</constant>)
for subsequent use. Usually the first thing to do after a successful open is to
find out the frontend type with <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
<para>The device can be opened in read-only mode, which only allows monitoring of
@@ -145,8 +144,7 @@ device.</para>
<varlistentry>
<term><errorcode>EBUSY</errorcode></term>
<listitem>
- <para>The driver does not support multiple opens and the
-device is already in use.</para>
+ <para>The the device driver is already in use.</para>
</listitem>
</varlistentry>
<varlistentry>
@@ -177,13 +175,19 @@ files open.</para>
system has been reached.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><errorcode>ENODEV</errorcode></term>
+ <listitem>
+ <para>The device got removed.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
</refsect1>
</refentry>
<refentry id="frontend_f_close">
<refmeta>
- <refentrytitle>close()</refentrytitle>
+ <refentrytitle>DVB frontend close()</refentrytitle>
&manvol;
</refmeta>
--
2.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments
2015-06-01 9:12 [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Mauro Carvalho Chehab
@ 2015-06-01 9:12 ` Mauro Carvalho Chehab
2015-06-01 9:16 ` Hans Verkuil
2015-06-01 9:15 ` [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Hans Verkuil
1 sibling, 1 reply; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2015-06-01 9:12 UTC (permalink / raw)
To: Linux Media Mailing List
Cc: Mauro Carvalho Chehab, Mauro Carvalho Chehab, Jonathan Corbet,
Hans Verkuil, linux-doc
FE_SET_PROPERTY/FE_GET_PROPERTY actually expects a struct dtv_properties
argument.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
diff --git a/Documentation/DocBook/media/dvb/fe-get-property.xml b/Documentation/DocBook/media/dvb/fe-get-property.xml
index 7d0bd78f5a24..53a170ed3bd1 100644
--- a/Documentation/DocBook/media/dvb/fe-get-property.xml
+++ b/Documentation/DocBook/media/dvb/fe-get-property.xml
@@ -17,7 +17,7 @@
<funcdef>int <function>ioctl</function></funcdef>
<paramdef>int <parameter>fd</parameter></paramdef>
<paramdef>int <parameter>request</parameter></paramdef>
- <paramdef>struct dtv_property *<parameter>argp</parameter></paramdef>
+ <paramdef>struct dtv_properties *<parameter>argp</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
--
2.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] [media] DocBook: some fixes for DVB FE open()
2015-06-01 9:12 [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Mauro Carvalho Chehab
2015-06-01 9:12 ` [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments Mauro Carvalho Chehab
@ 2015-06-01 9:15 ` Hans Verkuil
1 sibling, 0 replies; 4+ messages in thread
From: Hans Verkuil @ 2015-06-01 9:15 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Linux Media Mailing List
Cc: Mauro Carvalho Chehab, Jonathan Corbet, Hans Verkuil, linux-doc
On 06/01/2015 11:12 AM, Mauro Carvalho Chehab wrote:
> The changeset dc9ef7d11207 change the open() ioctl documentation to
> match the V4L2 open(). However, some cut-and-pasted stuff doesn't
> match what actually happens at the DVB core.
>
> So, fix the documentation entry to be more accurate with the DVB
> frontend open() specifics.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
I thought this might be necessary :-)
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Thanks!
Hans
>
> diff --git a/Documentation/DocBook/media/dvb/frontend.xml b/Documentation/DocBook/media/dvb/frontend.xml
> index c7fa3d8bff5c..9d8e95cd9694 100644
> --- a/Documentation/DocBook/media/dvb/frontend.xml
> +++ b/Documentation/DocBook/media/dvb/frontend.xml
> @@ -61,7 +61,7 @@ specification is available at
>
> <refentry id="frontend_f_open">
> <refmeta>
> - <refentrytitle>open()</refentrytitle>
> + <refentrytitle>DVB frontend open()</refentrytitle>
> &manvol;
> </refmeta>
>
> @@ -94,20 +94,19 @@ specification is available at
> <varlistentry>
> <term><parameter>flags</parameter></term>
> <listitem>
> - <para>Open flags. Access mode must be
> -<constant>O_RDWR</constant>. This is just a technicality, input devices
> -still support only reading and output devices only writing.</para>
> - <para>When the <constant>O_NONBLOCK</constant> flag is
> -given, the read() function will return the &EAGAIN; when no data is available,
> -otherwise these functions block until data becomes
> -available. Other flags have no effect.</para>
> + <para>Open flags. Access can either be
> + <constant>O_RDWR</constant> or <constant>O_RDONLY</constant>.</para>
> + <para>Multiple opens are allowed with <constant>O_RDONLY</constant>. In this mode, only query and read ioctls are allowed.</para>
> + <para>Only one open is allowed in <constant>O_RDWR</constant>. In this mode, all ioctls are allowed.</para>
> + <para>When the <constant>O_NONBLOCK</constant> flag is given, the system calls may return &EAGAIN; when no data is available or when the device driver is temporarily busy.</para>
> + <para>Other flags have no effect.</para>
> </listitem>
> </varlistentry>
> </variablelist>
> </refsect1>
> <refsect1>
> <title>Description</title>
> -<para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
> + <para>This system call opens a named frontend device (<constant>/dev/dvb/adapter?/frontend?</constant>)
> for subsequent use. Usually the first thing to do after a successful open is to
> find out the frontend type with <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
> <para>The device can be opened in read-only mode, which only allows monitoring of
> @@ -145,8 +144,7 @@ device.</para>
> <varlistentry>
> <term><errorcode>EBUSY</errorcode></term>
> <listitem>
> - <para>The driver does not support multiple opens and the
> -device is already in use.</para>
> + <para>The the device driver is already in use.</para>
> </listitem>
> </varlistentry>
> <varlistentry>
> @@ -177,13 +175,19 @@ files open.</para>
> system has been reached.</para>
> </listitem>
> </varlistentry>
> + <varlistentry>
> + <term><errorcode>ENODEV</errorcode></term>
> + <listitem>
> + <para>The device got removed.</para>
> + </listitem>
> + </varlistentry>
> </variablelist>
> </refsect1>
> </refentry>
>
> <refentry id="frontend_f_close">
> <refmeta>
> - <refentrytitle>close()</refentrytitle>
> + <refentrytitle>DVB frontend close()</refentrytitle>
> &manvol;
> </refmeta>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments
2015-06-01 9:12 ` [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments Mauro Carvalho Chehab
@ 2015-06-01 9:16 ` Hans Verkuil
0 siblings, 0 replies; 4+ messages in thread
From: Hans Verkuil @ 2015-06-01 9:16 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Linux Media Mailing List
Cc: Mauro Carvalho Chehab, Jonathan Corbet, Hans Verkuil, linux-doc
On 06/01/2015 11:12 AM, Mauro Carvalho Chehab wrote:
> FE_SET_PROPERTY/FE_GET_PROPERTY actually expects a struct dtv_properties
> argument.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
>
> diff --git a/Documentation/DocBook/media/dvb/fe-get-property.xml b/Documentation/DocBook/media/dvb/fe-get-property.xml
> index 7d0bd78f5a24..53a170ed3bd1 100644
> --- a/Documentation/DocBook/media/dvb/fe-get-property.xml
> +++ b/Documentation/DocBook/media/dvb/fe-get-property.xml
> @@ -17,7 +17,7 @@
> <funcdef>int <function>ioctl</function></funcdef>
> <paramdef>int <parameter>fd</parameter></paramdef>
> <paramdef>int <parameter>request</parameter></paramdef>
> - <paramdef>struct dtv_property *<parameter>argp</parameter></paramdef>
> + <paramdef>struct dtv_properties *<parameter>argp</parameter></paramdef>
Oops, my fault. It's already merged, but for the record:
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Regards,
Hans
> </funcprototype>
> </funcsynopsis>
> </refsynopsisdiv>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-01 9:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 9:12 [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Mauro Carvalho Chehab
2015-06-01 9:12 ` [PATCH 2/2] [media] DocBook: fix FE_SET_PROPERTY ioctl arguments Mauro Carvalho Chehab
2015-06-01 9:16 ` Hans Verkuil
2015-06-01 9:15 ` [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() Hans Verkuil
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.