pub fn allocate_frames(
token: &IrqDisabledToken,
order: u8,
) -> Result<PhysFrame, AllocError>Expand description
Allocate 2^order contiguous physical frames.
Requires an IrqDisabledToken proving that IRQs are disabled on the calling CPU,
preventing re-entrant allocation from an interrupt handler on the same lock.