twizzler_abi::syscall

Enum Syscall

source
#[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§

source§

impl Syscall

source

pub fn num(&self) -> u64

Return the number associated with this syscall.

Trait Implementations§

source§

impl Clone for Syscall

source§

fn clone(&self) -> Syscall

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Syscall

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<usize> for Syscall

source§

fn from(x: usize) -> Self

Converts to this type from the input type.
source§

impl Copy for Syscall

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.