from_kprojid(9)
π 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 aprojidin, 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
- 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