Crate mapped_file
source ·Modules
- Wrapping
errno
error types - Types for, and operations on file descriptors. Useful for mapping
- Huge-page interface for
MappedFile<T>
andMemoryFile
. mmap()
based (regular or huge) page-sized ring-buffers over arbitrary files
Structs
- 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>
’stry_/new()
method to provide flags directly formmap()
. Usually, the enumFlags
should be used for this, but for HUGETLB configurations, or used-definedMAP_FIXED
usages, it can be used on other types.
Functions
- Get the current system page size