Function psp::sys::sceKernelLoadModule

source ·
#[no_mangle]
pub unsafe extern "C" fn sceKernelLoadModule(
    path: *const u8,
    flags: i32,
    option: *mut SceKernelLMOption
) -> SceUid
Expand description

Load a module.

This function restricts where it can load from (such as from flash0) unless you call it in kernel mode. It also must be called from a thread.

§Parameters

  • path: The path to the module to load.
  • flags: Unused, always 0 .
  • option: Pointer to a SceKernelLMOption structure. Can be null.

§Return Value

The UID of the loaded module on success, otherwise one of KernelErrorCodes.