pub type CNode<C = NoExplicitInvocationContext> = Cap<CNode, C>;
Aliased Type§
struct CNode<C = NoExplicitInvocationContext> { /* private fields */ }
Implementations§
Source§impl<C> CNode<C>
impl<C> CNode<C>
Sourcepub fn absolute_cptr<T: HasCPtrWithDepth>(self, path: T) -> AbsoluteCPtr<C>
pub fn absolute_cptr<T: HasCPtrWithDepth>(self, path: T) -> AbsoluteCPtr<C>
Returns the AbsoluteCPtr
for path
in the context of self
.
Sourcepub fn absolute_cptr_from_bits_with_depth(
self,
bits: CPtrBits,
depth: usize,
) -> AbsoluteCPtr<C>
pub fn absolute_cptr_from_bits_with_depth( self, bits: CPtrBits, depth: usize, ) -> AbsoluteCPtr<C>
Returns the AbsoluteCPtr
for
CPtrWithDepth::from_bits_with_depth(bits, depth)
in the context of self
.
Sourcepub fn absolute_cptr_for_self(self) -> AbsoluteCPtr<C>
pub fn absolute_cptr_for_self(self) -> AbsoluteCPtr<C>
Returns the AbsoluteCPtr
for self
in its own context.
Currently implemented as:
self.absolute_cptr(CPtrWithDepth::empty())
Source§impl<T: CapType> Cap<T>
impl<T: CapType> Cap<T>
Sourcepub fn debug_identify(self) -> u32
pub fn debug_identify(self) -> u32
Corresponds to seL4_DebugCapIdentify
.
Source§impl<T: CapTypeForFrameObject, C: InvocationContext> Cap<T, C>
impl<T: CapTypeForFrameObject, C: InvocationContext> Cap<T, C>
Sourcepub fn frame_map(
self,
page_table: PageTable,
vaddr: usize,
rights: CapRights,
attrs: VmAttributes,
) -> Result<()>
pub fn frame_map( self, page_table: PageTable, vaddr: usize, rights: CapRights, attrs: VmAttributes, ) -> Result<()>
Corresponds to seL4_RISCV_Page_Map
.
Sourcepub fn frame_unmap(self) -> Result<()>
pub fn frame_unmap(self) -> Result<()>
Corresponds to seL4_RISCV_Page_Unmap
.
Sourcepub fn frame_get_address(self) -> Result<usize>
pub fn frame_get_address(self) -> Result<usize>
Corresponds to seL4_RISCV_Page_GetAddress
.
Trait Implementations
Source§impl<T: CapType, C> HasCPtrWithDepth for Cap<T, C>
impl<T: CapType, C> HasCPtrWithDepth for Cap<T, C>
Source§fn cptr_with_depth(self) -> CPtrWithDepth
fn cptr_with_depth(self) -> CPtrWithDepth
Returns the logical
CPtrWithDepth
entailed by self
.