Skip to main content

MAX_FILE_MAPPINGS

Constant MAX_FILE_MAPPINGS 

Source
pub const MAX_FILE_MAPPINGS: usize = 32;
Expand description

Maximum number of file mappings that can be registered in the PEB.

Space for this many FileMappingInfo entries is statically reserved immediately after the HyperlightPEB struct within the same memory region. The reservation happens at layout time (see SandboxMemoryLayout::new) so the guest heap never overlaps the array, regardless of how many entries are actually used.