alloc_frames

Function alloc_frames 

Source
pub fn alloc_frames(num: usize) -> Option<Vec<FrameTracker>>
Expand description

分配多个物理帧(不保证连续)。

§参数

  • num - 需要分配的帧数量。

§返回

如果分配成功,返回 Some(Vec<FrameTracker>);否则返回 None