tomoyo_sys_getpid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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