[−][src]Struct sunrise_libuser::caps::KipHeader
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:
- Bit 0-2: unused
- Bit 3: Is64Bit
- Bit 4: IsAddrSpace36Bit
- Bit 5: UseSystemPoolPartition (1: System, 0: Application)
- Bit 6-7: unused
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]
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,