Crate userfaultfd

Source
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§

EventBuffer
Represents an opaque buffer where userfaultfd events are stored.
FeatureFlags
Used with UffdBuilder to determine which features are available in the current kernel.
IoctlFlags
Used with UffdBuilder and Uffd::register() to determine which operations are available.
RegisterMode
The registration mode used when registering an address range with Uffd.
Uffd
The userfaultfd object.
UffdBuilder
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().
FaultKind
The kind of fault for a page fault event.
ReadWrite
Whether a page fault event was for a read or write.

Type Aliases§

Result