Struct sel4_cspace::interface::cap_t
source · pub struct cap_t {
pub words: [usize; 2],
}
Fields§
§words: [usize; 2]
Implementations§
source§impl cap_t
impl cap_t
zombie cap相关字段和方法
pub fn get_zombie_bit(&self) -> usize
pub fn get_zombie_ptr(&self) -> usize
pub fn get_zombie_number(&self) -> usize
pub fn set_zombie_number(&mut self, n: usize)
source§impl cap_t
impl cap_t
pub fn new_null_cap() -> Self
pub fn new_untyped_cap( capFreeIndex: usize, capIsDevice: usize, capBlockSize: usize, capPtr: usize ) -> Self
pub fn get_untyped_free_index(&self) -> usize
pub fn set_untyped_free_index(&mut self, new_field: usize)
pub fn get_untyped_is_device(&self) -> usize
pub fn set_untyped_is_device(&mut self, new_field: usize)
pub fn get_untyped_block_size(&self) -> usize
pub fn set_untyped_block_size(&mut self, new_field: usize)
pub fn get_untyped_ptr(&self) -> usize
pub fn set_untyped_ptr(&mut self, new_field: usize)
pub fn new_endpoint_cap( capEPBadge: usize, capCanGrantReply: usize, capCanGrant: usize, capCanSend: usize, capCanReceive: usize, capEPPtr: usize ) -> Self
pub fn get_ep_badge(&self) -> usize
pub fn set_ep_badge(&mut self, new_field: usize)
pub fn get_ep_can_grant_reply(&self) -> usize
pub fn set_ep_can_grant_reply(&mut self, new_field: usize)
pub fn get_ep_can_grant(&self) -> usize
pub fn set_ep_can_grant(&mut self, new_field: usize)
pub fn get_ep_can_send(&self) -> usize
pub fn set_ep_can_send(&mut self, new_field: usize)
pub fn get_ep_can_receive(&self) -> usize
pub fn set_ep_can_receive(&mut self, new_field: usize)
pub fn get_ep_ptr(&self) -> usize
pub fn set_ep_ptr(&mut self, new_field: usize)
pub fn new_notification_cap( capNtfnBadge: usize, capNtfnCanReceive: usize, capNtfnCanSend: usize, capNtfnPtr: usize ) -> Self
pub fn get_nf_badge(&self) -> usize
pub fn set_nf_badge(&mut self, new_field: usize)
pub fn get_nf_can_receive(&self) -> usize
pub fn set_nf_can_receive(&mut self, new_field: usize)
pub fn get_nf_can_send(&self) -> usize
pub fn set_nf_can_send(&mut self, new_field: usize)
pub fn get_nf_ptr(&self) -> usize
pub fn set_nf_ptr(&mut self, new_field: usize)
pub fn new_reply_cap( capReplyCanGrant: usize, capReplyMaster: usize, capTCBPtr: usize ) -> Self
pub fn get_reply_can_grant(&self) -> usize
pub fn set_reply_can_grant(&mut self, new_field: usize)
pub fn get_reply_master(&self) -> usize
pub fn set_reply_master(&mut self, new_field: usize)
pub fn get_reply_tcb_ptr(&self) -> usize
pub fn set_reply_tcb_ptr(&mut self, new_field: usize)
pub fn new_cnode_cap( capCNodeRadix: usize, capCNodeGuardSize: usize, capCNodeGuard: usize, capCNodePtr: usize ) -> Self
pub fn get_cnode_radix(&self) -> usize
pub fn set_cnode_radix(&mut self, new_field: usize)
pub fn get_cnode_guard_size(&self) -> usize
pub fn set_cnode_guard_size(&mut self, new_field: usize)
pub fn get_cnode_guard(&self) -> usize
pub fn set_cnode_guard(&mut self, new_field: usize)
pub fn get_cnode_ptr(&self) -> usize
pub fn set_cnode_ptr(&mut self, new_field: usize)
pub fn new_thread_cap(capTCBPtr: usize) -> Self
pub fn get_tcb_ptr(&self) -> usize
pub fn set_tcb_ptr(&mut self, new_field: usize)
pub fn new_irq_control_cap() -> Self
pub fn new_irq_handler_cap(capIRQ: usize) -> Self
pub fn get_irq_handler(&self) -> usize
pub fn set_irq_handler(&mut self, new_field: usize)
pub fn new_zombie_cap(capZombieID: usize, capZombieType: usize) -> Self
pub fn get_zombie_id(&self) -> usize
pub fn set_zombie_id(&mut self, new_field: usize)
pub fn get_zombie_type(&self) -> usize
pub fn set_zombie_type(&mut self, new_field: usize)
pub fn new_domain_cap() -> Self
pub fn new_frame_cap( capFMappedASID: usize, capFBasePtr: usize, capFSize: usize, capFVMRights: usize, capFIsDevice: usize, capFMappedAddress: usize ) -> Self
pub fn get_frame_mapped_asid(&self) -> usize
pub fn set_frame_mapped_asid(&mut self, new_field: usize)
pub fn get_frame_base_ptr(&self) -> usize
pub fn set_frame_base_ptr(&mut self, new_field: usize)
pub fn get_frame_size(&self) -> usize
pub fn set_frame_size(&mut self, new_field: usize)
pub fn get_frame_vm_rights(&self) -> usize
pub fn set_frame_vm_rights(&mut self, new_field: usize)
pub fn get_frame_is_device(&self) -> usize
pub fn set_frame_is_device(&mut self, new_field: usize)
pub fn get_frame_mapped_address(&self) -> usize
pub fn set_frame_mapped_address(&mut self, new_field: usize)
pub fn new_page_table_cap( capPTMappedASID: usize, capPTBasePtr: usize, capPTIsMapped: usize, capPTMappedAddress: usize ) -> Self
pub fn get_pt_mapped_asid(&self) -> usize
pub fn set_pt_mapped_asid(&mut self, new_field: usize)
pub fn get_pt_base_ptr(&self) -> usize
pub fn set_pt_base_ptr(&mut self, new_field: usize)
pub fn get_pt_is_mapped(&self) -> usize
pub fn set_pt_is_mapped(&mut self, new_field: usize)
pub fn get_pt_mapped_address(&self) -> usize
pub fn set_pt_mapped_address(&mut self, new_field: usize)
pub fn new_asid_control_cap() -> Self
pub fn new_asid_pool_cap(capASIDBase: usize, capASIDPool: usize) -> Self
pub fn get_asid_base(&self) -> usize
pub fn set_asid_base(&mut self, new_field: usize)
pub fn get_asid_pool(&self) -> usize
pub fn set_asid_pool(&mut self, new_field: usize)
pub fn get_type(&self) -> usize
source§impl cap_t
impl cap_t
cap 的公用方法
pub fn update_data(&self, preserve: bool, new_data: usize) -> Self
pub fn get_cap_type(&self) -> CapTag
pub fn get_cap_ptr(&self) -> usize
pub fn get_cap_size_bits(&self) -> usize
pub fn get_cap_is_physical(&self) -> bool
pub fn isArchCap(&self) -> bool
Trait Implementations§
source§impl PartialEq<cap_t> for cap_t
impl PartialEq<cap_t> for cap_t
impl Copy for cap_t
impl Eq for cap_t
impl StructuralEq for cap_t
impl StructuralPartialEq for cap_t
Auto Trait Implementations§
impl RefUnwindSafe for cap_t
impl Send for cap_t
impl Sync for cap_t
impl Unpin for cap_t
impl UnwindSafe for cap_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