#[repr(C)]pub enum Syscall {
Show 20 variants
Null = 0,
KernelConsoleRead = 1,
KernelConsoleWrite = 2,
ThreadSync = 3,
ThreadCtrl = 4,
ObjectCreate = 5,
ObjectMap = 6,
SysInfo = 7,
Spawn = 8,
ReadClockInfo = 9,
ReadClockList = 10,
Kaction = 11,
NewHandle = 12,
ObjectUnmap = 13,
ObjectCtrl = 14,
ObjectStat = 15,
ObjectReadMap = 16,
UnbindHandle = 17,
SctxAttach = 18,
NumSyscalls = 19,
}
Expand description
All possible Synchronous syscalls into the Twizzler kernel.
Variants§
Null = 0
KernelConsoleRead = 1
Read data from the kernel console, either buffer or input.
KernelConsoleWrite = 2
Write data to the kernel console.
ThreadSync = 3
Sync a thread with other threads using some number of memory words.
ThreadCtrl = 4
General thread control functions.
ObjectCreate = 5
Create new object.
ObjectMap = 6
Map an object into address space.
SysInfo = 7
Returns system info.
Spawn = 8
Spawn a new thread.
ReadClockInfo = 9
Read clock information.
ReadClockList = 10
List clock sources.
Kaction = 11
Apply a kernel action to an object (used for device drivers).
NewHandle = 12
New Handle.
ObjectUnmap = 13
Unmap an object.
ObjectCtrl = 14
Manage in-kernel object properties.
ObjectStat = 15
Get kernel information about an object.
ObjectReadMap = 16
Read mapping information.
UnbindHandle = 17
Remove an object as a handle.
SctxAttach = 18
Attach to a security context.
NumSyscalls = 19
Implementations§
Trait Implementations§
impl Copy for Syscall
Auto Trait Implementations§
impl Freeze for Syscall
impl ObjSafe for Syscall
impl RefUnwindSafe for Syscall
impl Send for Syscall
impl Sync for Syscall
impl Unpin for Syscall
impl UnwindSafe for Syscall
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)