Expand description
Encapsulation for system call arguments and return values.
The inline-asm code paths do some amount of reordering of arguments; to ensure that we donβt accidentally misroute an argument or return value, we use distinct types for each argument index and return value.
Β§Safety
The ToAsm
and FromAsm
traits are unsafe to use; they should only be
used by the syscall code which executes actual syscall machine
instructions.
Modules§
Structs§
- A0 π
- A1 π
- A2 π
- A3 π
- A4 π
- A5 π
- ArgReg πSyscall arguments use register-sized types. We use a newtype to discourage accidental misuse of the raw integer values.
- Opaque πTo preserve provenance, syscall arguments and return values are passed as pointer types. They need a type to point to, so we define a custom private type, to prevent it from being used for anything else.
- R0 π
- RetReg πSyscall return values use register-sized types. We use a newtype to discourage accidental misuse of the raw integer values.
- SyscallNumber π