Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

getpid (nr 39)

Linux Signature

pid_t getpid(void);

Description

Returns the process ID of the calling process.

Current Implementation

Returns current_pid().as_u64(). Always succeeds (no error return).

Source: osl/src/syscalls/process.rssys_getpid