Crate mapped_file
source · [−]Modules
Wrapping
errno
error typesTypes for, and operations on file descriptors. Useful for mapping
Huge-page interface for
MappedFile<T>
and MemoryFile
.mmap()
based (regular or huge) page-sized ring-buffers over arbitrary filesStructs
Used for anonymous mappings with
MappedFile
.A memory mapping over file
T
.Error returned when mapping operation fails.
Enums
Advice to the kernel about how to load the mapped pages. These will control
madvise()
.Flags for mapping a file descriptor.
Options for flushing a mapping. These will control how the
msync()
is called.Permissions for the mapped pages.
Traits
Any type implementing this trait can be passed to
MappedFile<T>
’s try_/new()
method to provide flags directly for mmap()
.
Usually, the enum Flags
should be used for this, but for HUGETLB configurations, or used-defined MAP_FIXED
usages, it can be used on other types.Functions
Get the current system page size