Expand description
Support for virtual memory management, including memory protections.
Structs§
- Memory
Error - An error which may result from a memory operation such as locking.
- Secure
Alloc - An allocator which obtains a discrete number of virtual memory pages.
Enums§
- Protection
Mode - Enumeration of options for setting the memory protection mode.
Constants§
- UNINIT_
ALLOC_ BYTE - Indicator value to help detect uninitialized protected data.
Functions§
- alloc_
pages - Allocate a page-aligned buffer. The alignment will be rounded up to a multiple of the platform pointer size if necessary.
- dealloc_
pages - Release a buffer allocated by
alloc_aligned
. - default_
page_ size - Fetch the system-specific page size.
- lock_
pages - Prevent swapping for the given memory range. On supported platforms, avoid including the memory in core dumps.
- page_
rounded_ length - Round up a length of bytes to a multiple of the page size.
- set_
page_ protection - Adjust the protection mode for a given memory range.
- unlock_
pages - Resume normal swapping behavior for the given memory range.