pidfs_register_pid_gfp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

pidfs_register_pid_gfp πŸ’…

okay so bestie, this is the Kernel API Manual page for pidfs_register_pid_gfp β€” tiny page, but it's got main-character kernel energy ✨


NAME πŸŽ€

pidfs_register_pid_gfp β€” register a struct pid in pidfs with custom GFP flags πŸ’…


SYNOPSIS ✨

the whole signature, no cap:

int pidfs_register_pid_gfp (struct pid *pid , gfp_t gfp );

ARGUMENTS 🌸

two little cuties walk into the function:

  • pid β€” pid to pin 🫢
  • gfp β€” GFP flags for memory allocation ✨

DESCRIPTION πŸ’–

Register a struct pid in pidfs with custom GFP flags.

literally that: you're registering the struct pid in pidfs, and you're bringing your own GFP flags to the memory-allocation vibe check πŸ¦‹


RETURN πŸ‘‘

On success zero, on error a negative error code is returned.

so: success = 0 ✨, error = negative error code 😭 β€” periodt.


SEE ALSO 🌈


xoxo, your kernel bestie πŸ’– β€” source/version: ./fs Β· date: October 2026 Β· page: pidfs_register_pid_gfp(9) πŸŽ€

πŸ“¦ where this page comes from