userfaultfd.2: Note that UFFDIO_API must be the first ioctl(2)

And note that ioctl() fails with EINVAL if another ioctl(2)
is attempted before UFFDIO_API.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-29 13:11:53 +01:00
parent a34fda4104
commit 5074d8466a
1 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,12 @@ the application must enable it using the
operation.
This operation allows a handshake between the kernel and user space
to determine the API version and supported features.
This operation must be performed before any of the other
.BR ioctl (2)
operations described below (or those operations fail with the
.BR EINVAL
error).
After a successful
.B UFFDIO_API
operation,