Expand description
A Linux mechanism for handling page faults in user space.
The main way to interact with this library is to create a Uffd
object with a UffdBuilder
,
then use the methods of Uffd
from a worker thread.
See userfaultfd(2)
and
ioctl_userfaultfd(2)
for more
details.
Structs§
- Event
Buffer - Represents an opaque buffer where userfaultfd events are stored.
- Feature
Flags - Used with
UffdBuilder
to determine which features are available in the current kernel. - Ioctl
Flags - Used with
UffdBuilder
andUffd::register()
to determine which operations are available. - Register
Mode - The registration mode used when registering an address range with
Uffd
. - Uffd
- The userfaultfd object.
- Uffd
Builder - A builder for initializing
Uffd
objects.
Enums§
- Error
- Errors for this crate.
- Event
- Events from the userfaultfd object that are read by
Uffd::read_event()
. - Fault
Kind - The kind of fault for a page fault event.
- Read
Write - Whether a page fault event was for a read or write.