userfaultfd.2: Describe errors for read() on userfaultfd

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-06 07:53:41 +13:00
parent 68a9e23c1f
commit 058b32ac70
1 changed files with 10 additions and 0 deletions

View File

@ -199,6 +199,16 @@ otherwise it is a read fault.
.\" UFFD_PAGEFAULT_FLAG_WP is not yet supported. .\" UFFD_PAGEFAULT_FLAG_WP is not yet supported.
.RE .RE
.PP .PP
A
.BR read (2)
on a userfaultfd file descriptor can fail with the following errors:
.TP
.B EINVAL
The userfaultfd object has not yet been enabled using the
.BR UFFDIO_API
.BR ioctl (2)
operation
.PP
The userfaultfd file descriptor can be monitored with The userfaultfd file descriptor can be monitored with
.BR poll (2), .BR poll (2),
.BR select (2), .BR select (2),