Struct sel4_cspace::interface::cte_t
source · #[repr(C)]pub struct cte_t {
pub cap: cap_t,
pub cteMDBNode: mdb_node_t,
}
Expand description
由cap_t和 mdb_node 组成,是CSpace的基本组成单元
Fields§
§cap: cap_t
§cteMDBNode: mdb_node_t
Implementations§
source§impl cte_t
impl cte_t
pub fn get_ptr(&self) -> usize
pub fn get_offset_slot(&mut self, index: usize) -> &'static mut Self
pub fn derive_cap(&mut self, cap: &cap_t) -> deriveCap_ret
pub fn ensure_no_children(&self) -> exception_t
pub fn is_final_cap(&self) -> bool
pub fn is_long_running_delete(&self) -> bool
pub fn delete_all(&mut self, exposed: bool) -> exception_t
pub fn delete_one(&mut self)
pub fn revoke(&mut self) -> exception_t
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for cte_t
impl Send for cte_t
impl Sync for cte_t
impl Unpin for cte_t
impl UnwindSafe for cte_t
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