tomoyo_sys_getppid(9)
π tomoyo_sys_getppid(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's a whole man page about one (1) tiny function, and honestly? it's iconic. this is tomoyo_sys_getppid, living its best life in the Kernel API Manual. let's get into it π
πΈ NAME πΈ
tomoyo_sys_getppid β literally just a copy of getppid(). that's it. that's the whole vibe. no cap π
β¨ SYNOPSIS β¨
pid_t tomoyo_sys_getppid (void );
she takes nothing, she returns a pid_t. lowkey perfect π«Ά
π ARGUMENTS π
voidβ no arguments. zero. none. she doesn't need them, she's booked and busy π
π¦ DESCRIPTION π¦
Returns the parent process's PID. simple, clean, does exactly what it says on the tin β
ok so here's the lore, and it's giving "I did it for the build" π β Alpha does not have getppid defined. and because of that, to be able to build this module on Alpha, the author had to copy getppid from kernel/timer.c. yes, literally copy it. we respect the hustle π
π SEE ALSO π
Kernel file ./security/tomoyo/common.h, plus the whole friend group:
tomoyo_read_lock(9)tomoyo_read_unlock(9)tomoyo_sys_getpid(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)
like, go read them, iykyk π₯
k bye bestie!! this page came to you from ./security/tomoyo, dated October 2026, and yes it lives rent-free in the Kernel API Manual πβ¨
π¦ 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