Enums§
- The result type for find meta bits functions.
Functions§
- Performs address translation in contiguous metadata spaces (e.g. global and policy-specific in 64-bits, and global in 32-bits)
- Performs the translation of data address (
data_addr
) to metadata address for the specified metadata (metadata_spec
). - Align an pair of a metadata address and a metadata bit offset to the start of this metadata value. For example, when the metadata is 4 bits, it should only start at bit 0 or bit 4. When the metadata is 16 bits, it should only start at bit 0, and its metadata address should be aligned to 2 bytes. This is important, as
contiguous_meta_address_to_address
can only convert the start address of metadata to the data address. - Performs reverse address translation from contiguous metadata bits to data addresses. The input address and bit shift should be aligned.
- Tries to mmap the metadata space (
spec
) for the specified data address range (start
andsize
). Settingno_reserve
to true means the function will only map address range, without reserving swap-space/physical memory. Returns the size in bytes that gets mmapped in the function if success.