ioctl_userfaultfd.2: Add a few more EINVAL error cases/details

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-05 21:18:08 +13:00
parent 66e11c1f8f
commit 242c2b6b43
1 changed files with 18 additions and 5 deletions

View File

@ -240,6 +240,14 @@ field was zero.
There is no mapping in the specified address range. There is no mapping in the specified address range.
.TP .TP
.B EINVAL .B EINVAL
.I range.start
or
.I range.len
is not a multiple of the system page size; or,
.I range.len
is zero; or these fields are otherwise invalid.
.TP
.B EINVAL
There as an incompatible mapping in the specified address range. There as an incompatible mapping in the specified address range.
.\" FIXME What does "incompatible" mean? .\" FIXME What does "incompatible" mean?
.\" .\"
@ -266,7 +274,9 @@ or the
.I len .I len
field of the field of the
.I ufdio_range .I ufdio_range
structure was not a multiple of the system page size. structure was not a multiple of the system page size; or the
.I len
field was zero; or these fields were otherwise invalid.
.TP .TP
.B EINVAL .B EINVAL
There as an incompatible mapping in the specified address range. There as an incompatible mapping in the specified address range.
@ -436,8 +446,9 @@ Either
.I range.start .I range.start
or or
.I range.len .I range.len
was not a multiple of the system page size, was not a multiple of the system page size; or
or the range specified was invalid. .I range.len
was zero; or the range specified was invalid.
.TP .TP
.B EINVAL .B EINVAL
An invalid bit was specified in the An invalid bit was specified in the
@ -464,13 +475,15 @@ is set to indicate the cause of the error.
Possible errors include: Possible errors include:
.TP .TP
.B EINVAL .B EINVAL
Either the The
.I start .I start
or the or the
.I len .I len
field of the field of the
.I ufdio_range .I ufdio_range
structure was not a multiple of the system page size. structure was not a multiple of the system page size; or
.I len
was zero; or the specified range was otherwise invalid.
.SH RETURN VALUE .SH RETURN VALUE
See descriptions of the individual operations, above. See descriptions of the individual operations, above.
.SH ERRORS .SH ERRORS