tomoyo_sys_getpid(9)
π tomoyo_sys_getpid(9) π
okay so bestie, welcome to the Kernel API Manual page for tomoyo_sys_getpid(9) β itβs giving βtiny helper, big main-character energy,β and honestly? iconic. π
πΈ NAME πΈ
tomoyo_sys_getpid β a copy of getpid(). literally thatβs the whole name, no cap. π
β¨ SYNOPSIS β¨
pid_t tomoyo_sys_getpid (void );
π¦ ARGUMENTS π¦
voidβ no arguments. not a single one. zero. nada. the void is voiding. π
π DESCRIPTION π
It returns the current threadβs PID. thatβs it, thatβs the vibe. π«Ά
Okay but hereβs the lore: Alpha does not have getpid defined. To be able to build this module on Alpha, I have to copy getpid from kernel/timer.c. yes bestie, a whole copy moment so this module can build on Alpha. πβ¨
π SEE ALSO π
Kernel file ./security/tomoyo/common.h, plus these cuties:
tomoyo_read_lock(9)tomoyo_read_unlock(9)tomoyo_sys_getppid(9)tomoyo_pathcmp(9)tomoyo_put_name(9)tomoyo_put_condition(9)tomoyo_put_group(9)tomoyo_task(9)tomoyo_same_name_union(9)tomoyo_same_number_union(9)tomoyo_same_ipaddr_union(9)tomoyo_current_namespace(9)list_for_each_cookie(9)
sign-off time, bestie: this page lives under ./security/tomoyo, itβs dated October 2026, and the manual page is tomoyo_sys_getpid(9). mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms