Module kernel::syscall[][src]

Expand description

Tock syscall number definitions and arch-agnostic interface trait.

Structs

CommandReturn

Possible return values of a command driver method, as specified in TRD104.

Enums

ContextSwitchReason

ContentSwitchReason specifies why the process stopped executing and execution returned to the kernel.

Syscall

Decoded system calls as defined in TRD 104.

SyscallClass

Enumeration of the system call classes based on the identifiers specified in the Tock ABI.

SyscallReturn

Enumeration of the possible system call return variants specified in TRD104.

SyscallReturnVariant

Enumeration of the system call return type variant identifiers described in TRD104.

YieldCall

Enumeration of the yield system calls based on the Yield identifier values specified in the Tock ABI.

Traits

SyscallDriver

Trait for capsules implementing peripheral driver system calls specified in TRD104. The kernel translates the values passed from userspace into Rust types and includes which process is making the call. All of these system calls perform very little synchronous work; long running computations or I/O should be split-phase, with an upcall indicating their completion.

UserspaceKernelBoundary

The UserspaceKernelBoundary trait is implemented by the architectural component of the chip implementation of Tock. This trait allows the kernel to switch to and from processes in an architecture-independent manner.