From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lb3-smtp-cloud3.xs4all.net ([194.109.24.30]:38494 "EHLO lb3-smtp-cloud3.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbbFAJPW (ORCPT ); Mon, 1 Jun 2015 05:15:22 -0400 Message-ID: <556C229E.3020105@xs4all.nl> Date: Mon, 01 Jun 2015 11:15:10 +0200 From: Hans Verkuil MIME-Version: 1.0 To: Mauro Carvalho Chehab , Linux Media Mailing List CC: Mauro Carvalho Chehab , Jonathan Corbet , Hans Verkuil , linux-doc@vger.kernel.org Subject: Re: [PATCH 1/2] [media] DocBook: some fixes for DVB FE open() References: <6fd877748a9c4133e37417061e426188fcb00fea.1433149961.git.mchehab@osg.samsung.com> In-Reply-To: <6fd877748a9c4133e37417061e426188fcb00fea.1433149961.git.mchehab@osg.samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: 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 I thought this might be necessary :-) Acked-by: Hans Verkuil 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 > > > > - open() > + DVB frontend open() > &manvol; > > > @@ -94,20 +94,19 @@ specification is available at > > flags > > - Open flags. Access mode must be > -O_RDWR. This is just a technicality, input devices > -still support only reading and output devices only writing. > - When the O_NONBLOCK 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. > + Open flags. Access can either be > + O_RDWR or O_RDONLY. > + Multiple opens are allowed with O_RDONLY. In this mode, only query and read ioctls are allowed. > + Only one open is allowed in O_RDWR. In this mode, all ioctls are allowed. > + When the O_NONBLOCK flag is given, the system calls may return &EAGAIN; when no data is available or when the device driver is temporarily busy. > + Other flags have no effect. > > > > > > Description > -This system call opens a named frontend device (/dev/dvb/adapter0/frontend0) > + This system call opens a named frontend device (/dev/dvb/adapter?/frontend?) > for subsequent use. Usually the first thing to do after a successful open is to > find out the frontend type with FE_GET_INFO. > The device can be opened in read-only mode, which only allows monitoring of > @@ -145,8 +144,7 @@ device. > > EBUSY > > - The driver does not support multiple opens and the > -device is already in use. > + The the device driver is already in use. > > > > @@ -177,13 +175,19 @@ files open. > system has been reached. > > > + > + ENODEV > + > + The device got removed. > + > + > > > > > > > - close() > + DVB frontend close() > &manvol; > > >