Function ctru_sys::svcCreateCodeSet

source ·
pub unsafe extern "C" fn svcCreateCodeSet(
    out: *mut Handle,
    info: *const CodeSetHeader,
    textSegmentLma: u32_,
    roSegmentLma: u32_,
    dataSegmentLma: u32_
) -> Result
Expand description

Sets up virtual address space for a new process.

§Arguments

  • out (direction out) - Pointer to output the codeset handle to.
  • info - Codeset header, contains process name, titleId and segment info.
  • textSegmentLma - Address of executable segment in caller’s address space.
  • roSegmentLma - Address of read-only segment in caller’s address space.
  • dataSegmentLma - Address of read-write segment in caller’s address space.

Note: On success, the provided segments are unmapped from the caller’s address space.