[][src]Struct sunrise_libkern::process::ProcInfo

#[repr(C)]pub struct ProcInfo {
    pub name: [u8; 12],
    pub process_category: ProcessCategory,
    pub title_id: u64,
    pub code_addr: u64,
    pub code_num_pages: u32,
    pub flags: ProcInfoFlags,
    pub resource_limit_handle: Option<NonZeroU32>,
    pub system_resource_num_pages: u32,
}

Informations necessary for the create_process syscall.

Fields

name: [u8; 12]

Name of the process (as seen by debuggers).

process_category: ProcessCategory

Category of the process. Should always be RegularTitle.

title_id: u64

TitleId of the process (as seen by svcGetInfo and debuggers).

code_addr: u64

Address where the main module's code will be loaded. Must be 21-bit aligned and fall within the "code allowed region", as follows:

code_num_pages: u32

Number of pages to allocate for code.

flags: ProcInfoFlags

Miscelaneous flags

resource_limit_handle: Option<NonZeroU32>

Resource limit to use for this process. If None, will use the sysmodule resource limit and 0x12300000 bytes of memory.

system_resource_num_pages: u32

Maximum amount of kernel memory used to create the process. If 0, then there is no limit.

Trait Implementations

impl Debug for ProcInfo[src]

Auto Trait Implementations

impl Send for ProcInfo

impl Sync for ProcInfo

impl Unpin for ProcInfo

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.