mirror of https://github.com/mkerrisk/man-pages
userfaultfd.2: Describe close() semantics for userfaultfd
Reported-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1bf00323f5
commit
7b8695f29c
|
@ -24,9 +24,6 @@
|
||||||
.\" the source, must acknowledge the copyright and authors of this work.
|
.\" the source, must acknowledge the copyright and authors of this work.
|
||||||
.\" %%%LICENSE_END
|
.\" %%%LICENSE_END
|
||||||
.\"
|
.\"
|
||||||
.\" FIXME Need to describe close(2) semantics for userfaulfd file descriptor:
|
|
||||||
.\" what happens when the userfaultfd FD is closed?
|
|
||||||
.\"
|
|
||||||
.TH USERFAULTFD 2 2016-12-12 "Linux" "Linux Programmer's Manual"
|
.TH USERFAULTFD 2 2016-12-12 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
userfaultfd \- create a file descriptor for handling page faults in user space
|
userfaultfd \- create a file descriptor for handling page faults in user space
|
||||||
|
@ -75,6 +72,10 @@ See the description of the
|
||||||
.BR O_NONBLOCK
|
.BR O_NONBLOCK
|
||||||
flag in
|
flag in
|
||||||
.BR open (2).
|
.BR open (2).
|
||||||
|
.PP
|
||||||
|
When the last file descriptor referring to a userfaultfd object is closed,
|
||||||
|
all memory ranges that were registered with the object are unregistered
|
||||||
|
and unread page-fault events are flushed.
|
||||||
.\"
|
.\"
|
||||||
.SS Usage
|
.SS Usage
|
||||||
The userfaultfd mechanism is designed to allow a thread in a multithreaded
|
The userfaultfd mechanism is designed to allow a thread in a multithreaded
|
||||||
|
|
Loading…
Reference in New Issue