Skip to main content

allocate_user_frame

Function allocate_user_frame 

Source
pub fn allocate_user_frame(
    token: &IrqDisabledToken,
) -> Result<PhysFrame, AllocError>
Expand description

Allocate a single zeroed 4 KiB frame intended for user-space memory.

The frame is tagged movable, which biases the buddy allocator toward the zone order intended to preserve scarce low memory for pinned kernel pages.