[][src]Enum kernel::syscall::Syscall

pub enum Syscall {
    YIELD,
    SUBSCRIBE {
        driver_number: usize,
        subdriver_number: usize,
        callback_ptr: *mut (),
        appdata: usize,
    },
    COMMAND {
        driver_number: usize,
        subdriver_number: usize,
        arg0: usize,
        arg1: usize,
    },
    ALLOW {
        driver_number: usize,
        subdriver_number: usize,
        allow_address: *mut u8,
        allow_size: usize,
    },
    MEMOP {
        operand: usize,
        arg0: usize,
    },
}

The syscall number assignments.

Variants

YIELD

Return to the kernel to allow other processes to execute or to wait for interrupts and callbacks.

SVC_NUM = 0

SUBSCRIBE

Pass a callback function to the kernel.

SVC_NUM = 1

Fields of SUBSCRIBE

driver_number: usizesubdriver_number: usizecallback_ptr: *mut ()appdata: usize
COMMAND

Instruct the kernel or a capsule to perform an operation.

SVC_NUM = 2

Fields of COMMAND

driver_number: usizesubdriver_number: usizearg0: usizearg1: usize
ALLOW

Share a memory buffer with the kernel.

SVC_NUM = 3

Fields of ALLOW

driver_number: usizesubdriver_number: usizeallow_address: *mut u8allow_size: usize
MEMOP

Various memory operations.

SVC_NUM = 4

Fields of MEMOP

operand: usizearg0: usize

Trait Implementations

impl Clone for Syscall[src]

impl Copy for Syscall[src]

impl Debug for Syscall[src]

impl PartialEq<Syscall> for Syscall[src]

impl StructuralPartialEq for Syscall[src]

Auto Trait Implementations

impl !Send for Syscall

impl !Sync for Syscall

impl Unpin for Syscall

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.