Skip to main content

alloc_migratetype

Function alloc_migratetype 

Source
pub fn alloc_migratetype(
    _token: &IrqDisabledToken,
    order: u8,
    migratetype: Migratetype,
) -> Result<PhysFrame, AllocError>
Expand description

Allocate frames with an explicit migratetype preference.

Order-0 allocations use a per-CPU cache partitioned by migratetype so the fast path preserves the caller’s mobility class.