* [PATCH] readv.2: document RWF_NOWAIT
@ 2017-10-29 8:40 Christoph Hellwig
2017-10-29 9:17 ` Silvan Jegen
2017-10-29 9:41 ` Matthew Wilcox
0 siblings, 2 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-10-29 8:40 UTC (permalink / raw)
To: linux-man; +Cc: linux-fsdevel, milosz
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
man2/readv.2 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/man2/readv.2 b/man2/readv.2
index 831cf6260..21d82849e 100644
--- a/man2/readv.2
+++ b/man2/readv.2
@@ -232,6 +232,25 @@ This flag is meaningful only for
.BR pwritev2 (),
and its effect applies only to the data range written by the system call.
.\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
+.TP
+.BR RWF_NOWAIT " (since Linux 4.14)"
+Dot not wait for data when it cannot be instantly retreived. If this flag
+is specified the
+.BR preadv2 ()
+system call will return instantly when it would have to read data from
+the backing storage or wait for a lock. Instead it will return -1 and set
+.I errno
+to
+.BR EAGAIN
+if no data could be read, or return less bytes than requested if some data
+could be read.
+This flag is meaningful only for
+.BR preadv2 ()
+at the moment.
+.\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
+.\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
+
+
.SH RETURN VALUE
On success,
.BR readv (),
--
2.14.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] readv.2: document RWF_NOWAIT
2017-10-29 8:40 [PATCH] readv.2: document RWF_NOWAIT Christoph Hellwig
@ 2017-10-29 9:17 ` Silvan Jegen
2017-10-29 9:41 ` Matthew Wilcox
1 sibling, 0 replies; 5+ messages in thread
From: Silvan Jegen @ 2017-10-29 9:17 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-man, linux-fsdevel, milosz
Hi
found two typos below.
On Sun, Oct 29, 2017 at 10:40:23AM +0200, Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> man2/readv.2 | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/man2/readv.2 b/man2/readv.2
> index 831cf6260..21d82849e 100644
> --- a/man2/readv.2
> +++ b/man2/readv.2
> @@ -232,6 +232,25 @@ This flag is meaningful only for
> .BR pwritev2 (),
> and its effect applies only to the data range written by the system call.
> .\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
> +.TP
> +.BR RWF_NOWAIT " (since Linux 4.14)"
> +Dot not wait for data when it cannot be instantly retreived. If this flag
s/Dot/Do/;s/retreived/retrieved/
Cheers,
Silvan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] readv.2: document RWF_NOWAIT
2017-10-29 8:40 [PATCH] readv.2: document RWF_NOWAIT Christoph Hellwig
2017-10-29 9:17 ` Silvan Jegen
@ 2017-10-29 9:41 ` Matthew Wilcox
2017-11-09 13:40 ` Michael Kerrisk (man-pages)
1 sibling, 1 reply; 5+ messages in thread
From: Matthew Wilcox @ 2017-10-29 9:41 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-man, linux-fsdevel, milosz
On Sun, Oct 29, 2017 at 10:40:23AM +0200, Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> man2/readv.2 | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/man2/readv.2 b/man2/readv.2
> index 831cf6260..21d82849e 100644
> --- a/man2/readv.2
> +++ b/man2/readv.2
> @@ -232,6 +232,25 @@ This flag is meaningful only for
> .BR pwritev2 (),
> and its effect applies only to the data range written by the system call.
> .\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
> +.TP
> +.BR RWF_NOWAIT " (since Linux 4.14)"
> +Dot not wait for data when it cannot be instantly retreived. If this flag
> +is specified the
> +.BR preadv2 ()
> +system call will return instantly when it would have to read data from
> +the backing storage or wait for a lock. Instead it will return -1 and set
> +.I errno
> +to
> +.BR EAGAIN
> +if no data could be read, or return less bytes than requested if some data
> +could be read.
> +This flag is meaningful only for
> +.BR preadv2 ()
> +at the moment.
> +.\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
> +.\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
The phrasing is a bit tortured ... try this:
.TP
.BR RWF_NOWAIT " (since Linux 4.14)"
Do not wait for data which is not immediately available.
If this flag is specified the
.BR preadv2 ()
system call will return instantly if it would have to read data from
the backing storage or wait for a lock.
If some data was successfully read, it will return the number of bytes read.
If no bytes were read, it will return -1 and set
.IR errno to
.BR EAGAIN .
This flag is meaningful only for
.BR preadv2 ()
at the moment.
.\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
.\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] readv.2: document RWF_NOWAIT
2017-10-29 9:41 ` Matthew Wilcox
@ 2017-11-09 13:40 ` Michael Kerrisk (man-pages)
2017-11-09 15:01 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-11-09 13:40 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Christoph Hellwig, linux-man, linux-fsdevel@vger.kernel.org,
Milosz Tanski
Hi Christoph,
On 29 October 2017 at 10:41, Matthew Wilcox <willy@infradead.org> wrote:
> On Sun, Oct 29, 2017 at 10:40:23AM +0200, Christoph Hellwig wrote:
>> Signed-off-by: Christoph Hellwig <hch@lst.de>
>> ---
>> man2/readv.2 | 19 +++++++++++++++++++
>> 1 file changed, 19 insertions(+)
>>
>> diff --git a/man2/readv.2 b/man2/readv.2
>> index 831cf6260..21d82849e 100644
>> --- a/man2/readv.2
>> +++ b/man2/readv.2
>> @@ -232,6 +232,25 @@ This flag is meaningful only for
>> .BR pwritev2 (),
>> and its effect applies only to the data range written by the system call.
>> .\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
>> +.TP
>> +.BR RWF_NOWAIT " (since Linux 4.14)"
>> +Dot not wait for data when it cannot be instantly retreived. If this flag
>> +is specified the
>> +.BR preadv2 ()
>> +system call will return instantly when it would have to read data from
>> +the backing storage or wait for a lock. Instead it will return -1 and set
>> +.I errno
>> +to
>> +.BR EAGAIN
>> +if no data could be read, or return less bytes than requested if some data
>> +could be read.
>> +This flag is meaningful only for
>> +.BR preadv2 ()
>> +at the moment.
>> +.\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
>> +.\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
>
> The phrasing is a bit tortured ... try this:
>
> .TP
> .BR RWF_NOWAIT " (since Linux 4.14)"
> Do not wait for data which is not immediately available.
> If this flag is specified the
> .BR preadv2 ()
> system call will return instantly if it would have to read data from
> the backing storage or wait for a lock.
> If some data was successfully read, it will return the number of bytes read.
> If no bytes were read, it will return -1 and set
> .IR errno to
> .BR EAGAIN .
> This flag is meaningful only for
> .BR preadv2 ()
> at the moment.
> .\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
> .\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
What are your thoughts on Matthew's proposed rewording?
Thanks,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] readv.2: document RWF_NOWAIT
2017-11-09 13:40 ` Michael Kerrisk (man-pages)
@ 2017-11-09 15:01 ` Christoph Hellwig
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-11-09 15:01 UTC (permalink / raw)
To: Michael Kerrisk (man-pages)
Cc: Matthew Wilcox, Christoph Hellwig, linux-man,
linux-fsdevel@vger.kernel.org, Milosz Tanski
On Thu, Nov 09, 2017 at 02:40:38PM +0100, Michael Kerrisk (man-pages) wrote:
> > The phrasing is a bit tortured ... try this:
> >
> > .TP
> > .BR RWF_NOWAIT " (since Linux 4.14)"
> > Do not wait for data which is not immediately available.
> > If this flag is specified the
> > .BR preadv2 ()
> > system call will return instantly if it would have to read data from
> > the backing storage or wait for a lock.
> > If some data was successfully read, it will return the number of bytes read.
> > If no bytes were read, it will return -1 and set
> > .IR errno to
> > .BR EAGAIN .
> > This flag is meaningful only for
> > .BR preadv2 ()
> > at the moment.
> > .\" commit 3239d834847627b6634a4139cf1dc58f6f137a46
> > .\" commit 91f9943e1c7b6638f27312d03fe71fcc67b23571
>
> What are your thoughts on Matthew's proposed rewording?
The look good to me. I'll try to find some time to respin the patch
with them incorporated.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-09 15:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-29 8:40 [PATCH] readv.2: document RWF_NOWAIT Christoph Hellwig
2017-10-29 9:17 ` Silvan Jegen
2017-10-29 9:41 ` Matthew Wilcox
2017-11-09 13:40 ` Michael Kerrisk (man-pages)
2017-11-09 15:01 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).