[][src]Function sunrise_libuser::syscalls::get_process_id

pub fn get_process_id(process_handle: &Process) -> Result<u64, KernelError>

Gets the PID of the given Process handle. Alias handles (0xFFFF8000 and 0xFFFF8001) are not allowed here. PIDs are global, unique identifiers for a given process. PIDs are never reused, and can be passed over IPC safely (the kernel ensures the correct pid is passed when a process does a request), making them the best way for sysmodule to identify a calling process.

Errors