[][src]Struct sunrise_libuser::syscalls::KipHeader

#[repr(C)]pub struct KipHeader {
    pub magic: [u8; 4],
    pub name: [u8; 12],
    pub title_id: u64,
    pub process_category: ProcessCategory,
    pub main_thread_priority: u8,
    pub default_cpu_core: u8,
    pub reserved: u8,
    pub flags: u8,
    pub stack_page_count: u32,
}

Header for Kernel Builtins. Can be found in the .kip_header section of our ELFs. Nintendo KIPs start with a (slightly different, but functionally equivalent) header.

Fields

magic: [u8; 4]

Should be *b"KIP1".

name: [u8; 12]

Name of the program. Pad with \0 if it's less than 12 bytes.

title_id: u64

Titleid of the program. Should start with 0x02 to avoid conflict with nintendo.

process_category: ProcessCategory

Category of the process. Should always be KernelBuiltin.

main_thread_priority: u8

Priority of the starting thread.

default_cpu_core: u8

CPU core the starting thread runs on.

reserved: u8

Reserved, leave to 0.

flags: u8

Bitflags controlling the behavior of the process:

stack_page_count: u32

Number of pages for the starting thread's stack.

Trait Implementations

impl Clone for KipHeader[src]

impl Copy for KipHeader[src]

impl Debug for KipHeader[src]

impl Default for KipHeader[src]

impl Plain for KipHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for KipHeader

impl Send for KipHeader

impl Sync for KipHeader

impl Unpin for KipHeader

impl UnwindSafe for KipHeader

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> SizedIPCBuffer for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.