from_kprojid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

okay bestie, welcome to from_kprojid(9) from the Kernel API Manual β€” this page is literally here to Create a projid from a kprojid user-namespace pair. πŸŽ€


✨ SYNOPSIS ✨

projid_t from_kprojid (struct user_namespace *targ , kprojid_t kprojid
       );

πŸŽ€ ARGUMENTS πŸŽ€

  • targ β€” the user namespace we want a projid in, periodt.
  • kprojid β€” the kernel internal project identifier to start with.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does is map kprojid into the user-namespace specified by targ and return the resulting projid. slay. ✨

Bestie, important: there is always a mapping into the initial user_namespace. no cap.

And if kprojid has no mapping in targ, then (projid_t)-1 is returned. that's the vibe check result, iykyk 😭


🌈 SEE ALSO 🌈

Kernel file ./kernel/user_namespace.c, plus the whole squad: make_kuid(9), from_kuid(9), from_kuid_munged(9), make_kgid(9), from_kgid(9), from_kgid_munged(9), make_kprojid(9), from_kprojid_munged(9), verify_root_map(9).


okay that's the whole page, bestie 🫢 β€” source/version ./kernel, dated October 2026, and the page is from_kprojid(9). mwah πŸ’‹

πŸ“¦ where this page comes from