Struct kernel::mem::frame_allocator::FrameTracker
source · pub struct FrameTracker {
frame_number: FrameNumber,
}
Expand description
The FrameTracker
struct represents a frame in the physical memory.
It contains the frame number and is responsible for zeroing out the frame when it is created.
It deallocates the frame when it is dropped, which follows the RAII idiom.
Fields§
§frame_number: FrameNumber
Implementations§
source§impl FrameTracker
impl FrameTracker
sourcepub fn new(frame_number: FrameNumber) -> Self
pub fn new(frame_number: FrameNumber) -> Self
Initializes a frame with a specific FrameNumber and zeros out the frame.