Skip to main content

allocate_frames

Function allocate_frames 

Source
pub fn allocate_frames(
    token: &IrqDisabledToken,
    order: u8,
) -> Result<PhysFrame, AllocError>
👎Deprecated:

use allocate_phys_contiguous() for DMA/contiguous allocations, or allocate_frame() for single kernel-data frames

Expand description

Allocate 2^order contiguous physical frames (raw, no zeroing).

Deprecated : use [allocate_phys_contiguous] for DMA / hardware-ring allocations where physical contiguity is the explicit requirement, or allocate_frame for single kernel-data frames. This name remains for internal callers that pre-date the explicit-intent API.