readv.2: document RWF_NOWAIT
PATCH 1/1 readv.2: document RWF_NOWAIT
--- man2/readv.2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
man2/readv.2 +19 -0
@@ -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 (),
Signature · 6 lines
2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi
found two typos below.
Quoted 10 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>--- man2/readv.2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)man2/readv.2 +0
-0
man2/readv.2 This flag is meaningful only for · line 237
Quoted 6 lines
man2/readv.2 +3
-0@@ -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
Quoted 20 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>--- man2/readv.2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)man2/readv.2 +7
-0@@ -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
man2/readv.2 This flag is meaningful only for · line 251
Quoted 10 lines
man2/readv.2 +10
-0+.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
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Christoph,
Quoted 34 lines · Matthew Wilcox
Quoted 20 lines · Christoph Hellwig
Signed-off-by Christoph Hellwig <[email protected]>--- man2/readv.2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)man2/readv.2 +7
-0@@ -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 setman2/readv.2 This flag is meaningful only for · line 251
Quoted 10 lines
man2/readv.2 +10
-0+.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 91f9943e1c7b6638f27312d03fe71fcc67b23571The phrasing is a bit tortured ... try this:
Quoted 16 lines
.TP
.BRRWF_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.
.\" commit3239d834847627b6634a4139cf1dc58f6f137a46
.\" commit91f9943e1c7b6638f27312d03fe71fcc67b23571
What are your thoughts on Matthew's proposed rewording?
Thanks,
Michael
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
Quoted 19 lines · Michael Kerrisk (man-pages)
Quoted 18 lines
The phrasing is a bit tortured ... try this:
.TP
.BRRWF_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.
.\" commit3239d834847627b6634a4139cf1dc58f6f137a46
.\" commit91f9943e1c7b6638f27312d03fe71fcc67b23571
Quoted 1 line
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.