pub struct VmObjectPhysical { /* private fields */ }Expand description
VMO representing a physical range of memory
Implementations§
Source§impl VmObjectPhysical
impl VmObjectPhysical
Sourcepub fn create(
base: PAddr,
size: usize,
) -> Result<RefPtr<VmObjectPhysical>, Status>
pub fn create( base: PAddr, size: usize, ) -> Result<RefPtr<VmObjectPhysical>, Status>
Create a new physical VMO for the given physical region.
Sourcepub fn cast(vmo: NonNull<VmObjectPhysical>) -> NonNull<VmObject>
pub fn cast(vmo: NonNull<VmObjectPhysical>) -> NonNull<VmObject>
Cast a pointer to a VmObjectPhysical to its base VmObject.
Trait Implementations§
Source§impl HasRefCount for VmObjectPhysical
impl HasRefCount for VmObjectPhysical
Source§fn ref_count(&self) -> &RefCounted
fn ref_count(&self) -> &RefCounted
Returns a reference to the contained
RefCounted field.Source§impl Recyclable for VmObjectPhysical
impl Recyclable for VmObjectPhysical
Auto Trait Implementations§
impl Freeze for VmObjectPhysical
impl RefUnwindSafe for VmObjectPhysical
impl Send for VmObjectPhysical
impl Sync for VmObjectPhysical
impl !Unpin for VmObjectPhysical
impl UnsafeUnpin for VmObjectPhysical
impl UnwindSafe for VmObjectPhysical
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more