sel4::cap

Type Alias Tcb

Source
pub type Tcb<C = NoExplicitInvocationContext> = Cap<Tcb, C>;

Aliased Type§

struct Tcb<C = NoExplicitInvocationContext> { /* private fields */ }

Implementations§

Source§

impl<C: InvocationContext> Tcb<C>

Source

pub fn tcb_read_registers( self, suspend: bool, count: Word, ) -> Result<UserContext>

Corresponds to seL4_TCB_ReadRegisters.

Source

pub fn tcb_read_all_registers(self, suspend: bool) -> Result<UserContext>

Source

pub fn tcb_write_registers( self, resume: bool, count: Word, regs: &mut UserContext, ) -> Result<()>

Corresponds to seL4_TCB_WriteRegisters.

Source

pub fn tcb_write_all_registers( self, resume: bool, regs: &mut UserContext, ) -> Result<()>

Source

pub fn tcb_resume(self) -> Result<()>

Corresponds to seL4_TCB_Resume.

Source

pub fn tcb_suspend(self) -> Result<()>

Corresponds to seL4_TCB_Suspend.

Source

pub fn tcb_configure( self, cspace_root: CNode, cspace_root_data: CNodeCapData, vspace_root: VSpace, ipc_buffer: Word, ipc_buffer_frame: Granule, ) -> Result<()>

Corresponds to seL4_TCB_Configure.

Source

pub fn tcb_set_space( self, fault_ep: CPtr, cspace_root: CNode, cspace_root_data: CNodeCapData, vspace_root: VSpace, ) -> Result<()>

Corresponds to seL4_TCB_SetSpace.

Source

pub fn tcb_set_sched_params( self, authority: Tcb, mcp: Word, priority: Word, sched_context: SchedContext, fault_ep: Endpoint, ) -> Result<()>

Corresponds to seL4_TCB_SetSchedParams.

Source

pub fn tcb_set_timeout_endpoint(self, timeout_endpoint: Endpoint) -> Result<()>

Source

pub fn tcb_set_tls_base(self, tls_base: Word) -> Result<()>

Corresponds to seL4_TCB_SetTLSBase.

Source

pub fn tcb_bind_notification(self, notification: Notification) -> Result<()>

Corresponds to seL4_TCB_BindNotification.

Source

pub fn tcb_unbind_notification(self) -> Result<()>

Corresponds to seL4_TCB_UnbindNotification.

Source§

impl<C: InvocationContext> Tcb<C>

Source

pub fn debug_name(self, name: &[u8])

Corresponds to seL4_DebugNameThread.