pub unsafe fn from_paddr(start_paddr: PhysAddr) -> Self {
        assert!(is_aligned(start_paddr));
        Self {
            start_paddr,
            frame_count: 0,
        }
    }
/// Constructs a frame from a raw physical address without automatically calling the destructor.
///
/// # Safety
///
/// This function is unsafe because the user must ensure that this is an available physical
/// frame.
Constructs a frame from a raw physical address without automatically calling the destructor.
Constructs a frame from a raw physical address without automatically calling the destructor .
pub unsafe fn from_paddr(start_paddr: PhysAddr) -> Self {
        assert!(is_aligned(start_paddr));
        Self {
            start_paddr,
            frame_count: 0,
        }
    }
pub unsafe fn from_paddr ( start_paddr : PhysAddr ) -> Self { assert ! ( is_aligned ( start_paddr ) ) ; Self { start_paddr , frame_count : 0 , } }
Constructs a frame from a raw physical address without automatically calling the destructor.
Constructs a frame from a raw physical address without automatically calling the destructor .
start_paddr
PhysAddr
start_paddr
PhysAddr
safety
This function is unsafe because the user must ensure that this is an available physical
frame.
This function is unsafe because the user must ensure that this is an available physical frame .