Skip to main content

alloc

Function alloc 

Source
pub fn alloc(
    addr_space: &mut AddressSpace,
    fixed_addr: Option<VirtAddr>,
    size: u64,
    flags: VmaFlags,
) -> Result<VirtAddr, MmError>
Expand description

Lazily allocate memory in the given user process’s address space

By passing the fixed_addr parameter, the caller can request the memory to be mapped into a specific location in the address space