pub type VCpu<C = NoExplicitInvocationContext> = Cap<VCpu, C>;
Aliased Type§
struct VCpu<C = NoExplicitInvocationContext> { /* private fields */ }
Implementations§
Source§impl<C: InvocationContext> VCpu<C>
impl<C: InvocationContext> VCpu<C>
Sourcepub fn vcpu_set_tcb(self, tcb: Tcb) -> Result<()>
pub fn vcpu_set_tcb(self, tcb: Tcb) -> Result<()>
Corresponds to seL4_ARM_VCPU_SetTCB
.
Sourcepub fn vcpu_read_regs(self, field: VCpuReg) -> Result<Word>
pub fn vcpu_read_regs(self, field: VCpuReg) -> Result<Word>
Corresponds to seL4_ARM_VCPU_ReadRegs
.
Sourcepub fn vcpu_write_regs(self, field: VCpuReg, value: Word) -> Result<()>
pub fn vcpu_write_regs(self, field: VCpuReg, value: Word) -> Result<()>
Corresponds to seL4_ARM_VCPU_WriteRegs
.
Sourcepub fn vcpu_ack_vppi(self, irq: Word) -> Result<()>
pub fn vcpu_ack_vppi(self, irq: Word) -> Result<()>
Corresponds to seL4_ARM_VCPU_AckVPPI
.
Sourcepub fn vcpu_inject_irq(
self,
virq: u16,
priority: u8,
group: u8,
index: u8,
) -> Result<()>
pub fn vcpu_inject_irq( self, virq: u16, priority: u8, group: u8, index: u8, ) -> Result<()>
Corresponds to seL4_ARM_VCPU_InjectIRQ
.
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,
vspace: VSpace,
vaddr: usize,
rights: CapRights,
attrs: VmAttributes,
) -> Result<()>
pub fn frame_map( self, vspace: VSpace, vaddr: usize, rights: CapRights, attrs: VmAttributes, ) -> Result<()>
Corresponds to seL4_ARM_Page_Map
.
Sourcepub fn frame_unmap(self) -> Result<()>
pub fn frame_unmap(self) -> Result<()>
Corresponds to seL4_ARM_Page_Unmap
.
Sourcepub fn frame_get_address(self) -> Result<usize>
pub fn frame_get_address(self) -> Result<usize>
Corresponds to seL4_ARM_Page_GetAddress
.
Source§impl<T: IpcCapType, C: InvocationContext> Cap<T, C>
impl<T: IpcCapType, C: InvocationContext> Cap<T, C>
Sourcepub fn nb_send_recv<U: IpcCapType>(
self,
info: MessageInfo,
src: Cap<U>,
reply_authority: impl ConveysReplyAuthority,
) -> (MessageInfo, Badge)
pub fn nb_send_recv<U: IpcCapType>( self, info: MessageInfo, src: Cap<U>, reply_authority: impl ConveysReplyAuthority, ) -> (MessageInfo, Badge)
Corresponds to seL4_NBSendRecv
.
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
.