Skip to main content

initialize_layout

Function initialize_layout 

Source
pub unsafe fn initialize_layout(
    region: PerCpuRegion,
) -> Result<&'static PerCpuLayout, PerCpuError>
Expand description

Validates and constructs all values in raw runtime areas exactly once.

Every descriptor and overlap is checked before the first destination write. The layout becomes globally visible only after all prefixes and objects are fully initialized.

ยงSafety

region must name exclusively owned, writable, correctly aligned storage that remains mapped until shutdown. No CPU may bind or access an area until this function succeeds, and the bytes must not contain live Rust values.