pub fn new(paddr: PhysAddr, pages: usize) -> Arc<Self> {
        assert!(page_aligned(paddr));
        Arc::new(VMObjectPhysical {
            paddr,
            pages,
            data_lock: Mutex::default(),
            inner: Mutex::new(VMObjectPhysicalInner::new()),
        })
    }
/// Create a new VMO representing a piece of contiguous physical memory.
/// You must ensure nobody has the ownership of this piece of memory yet.
Create a new VMO representing a piece of contiguous physical memory.
You must ensure nobody has the ownership of this piece of memory yet.
Create a new VMO representing a piece of contiguous physical memory . You must ensure nobody has the ownership of this piece of memory yet .
pub fn new(paddr: PhysAddr, pages: usize) -> Arc<Self> {
        assert!(page_aligned(paddr));
        Arc::new(VMObjectPhysical {
            paddr,
            pages,
            data_lock: Mutex::default(),
            inner: Mutex::new(VMObjectPhysicalInner::new()),
        })
    }
pub fn new ( paddr : PhysAddr , pages : usize ) -> Arc < Self > { assert ! ( page_aligned ( paddr ) ) ; Arc :: new ( VMObjectPhysical { paddr , pages , data_lock : Mutex :: default ( ) , inner : Mutex :: new ( VMObjectPhysicalInner :: new ( ) ) , } ) }
Create a new VMO representing a piece of contiguous physical memory.
Create a new VMO representing a piece of contiguous physical memory .
paddr
PhysAddr
pages
usize
paddr
PhysAddr
pages
usize