pub struct Slot { /* private fields */ }
Expand description
A slot for an object in active memory. All unique combinations of an object ID and Protections are given a slot. The exact slot locations may be reused. Typically, slots are reference counted, and when dropped, release the slot for reuse. The object may or may not be unmapped immediately following the slot’s drop.
Implementations§
source§impl Slot
impl Slot
pub fn new_from_handle(handle: ObjectHandle) -> Result<Self, ObjectInitError>
pub fn runtime_handle(&self) -> &ObjectHandle
pub fn slot_number(&self) -> usize
sourcepub fn prot(&self) -> Protections
pub fn prot(&self) -> Protections
Get the protections of this slot.
sourcepub fn vaddr_base(&self) -> usize
pub fn vaddr_base(&self) -> usize
Get the vaddr of this slot’s object base.
sourcepub fn vaddr_null(&self) -> usize
pub fn vaddr_null(&self) -> usize
Get the vaddr of this slot’s object’s null page.
sourcepub fn vaddr_meta(&self) -> usize
pub fn vaddr_meta(&self) -> usize
Get the vaddr of this slot’s object’s meta page.
sourcepub fn raw_lea<P>(&self, off: usize) -> *const P
pub fn raw_lea<P>(&self, off: usize) -> *const P
Perform a raw load-effective-address for an offset into a slot.
sourcepub fn raw_lea_mut<P>(&self, off: usize) -> *mut P
pub fn raw_lea_mut<P>(&self, off: usize) -> *mut P
Perform a raw load-effective-address for an offset into a slot.
sourcepub unsafe fn get_fote_unguarded(&self, idx: usize) -> *mut FotEntry
pub unsafe fn get_fote_unguarded(&self, idx: usize) -> *mut FotEntry
Get a mutable pointer to one of the slot’s object’s FOT entries.
§Safety
See this crate’s base documentation (Isolation Safety).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl !ObjSafe for Slot
impl RefUnwindSafe for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more