Crate mapped_file

Source

Modules§

err
Wrapping errno error types
file
Types for, and operations on file descriptors. Useful for mapping
hugetlb
Huge-page interface for MappedFile<T> and MemoryFile.
ring
mmap() based (regular or huge) page-sized ring-buffers over arbitrary files

Structs§

Anonymous
Used for anonymous mappings with MappedFile.
MappedFile
A memory mapping over file T.
TryNewError
Error returned when mapping operation fails.

Enums§

Advice
Advice to the kernel about how to load the mapped pages. These will control madvise().
Flags
Flags for mapping a file descriptor.
Flush
Options for flushing a mapping. These will control how the msync() is called.
Perm
Permissions for the mapped pages.

Traits§

MapFlags
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_page_size
Get the current system page size