Skip to main content

allocate_frame_for_purpose

Function allocate_frame_for_purpose 

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

Allocate a single zeroed 4 KiB frame for an explicit purpose.

This wrapper keeps the default zeroing policy while allowing callers to select the ownership class that drives buddy migratetype selection.