make_kuid(9)
π make_kuid(9) π
okay so bestie, this is the Kernel API Manual page for make_kuid(9) β tiny function, big user-namespace energy β¨
πΈ NAME πΈ
make_kuid β map a user-namespace uid pair into a kuid. π
β¨ SYNOPSIS β¨
kuid_t make_kuid (struct user_namespace *ns , uid_t uid );
π«Ά ARGUMENTS π«Ά
nsβ the user namespace that theuidis in. π¦uidβ the user identifier. π
π₯ DESCRIPTION π₯
This function maps a user-namespace uid pair into a kernel internal kuid, and returns that kuid. Slay. π
When there is no mapping defined for the user-namespace uid pair, INVALID_UID is returned. π Callers are expected to test for and handle INVALID_UID being returned β like, please do the vibe check, don't just ignore it. INVALID_UID may be tested for using uid_valid. π
π SEE ALSO π
Kernel file ./kernel/user_namespace.c β plus these iconic neighbors:
from_kuid(9)from_kuid_munged(9)make_kgid(9)from_kgid(9)from_kgid_munged(9)make_kprojid(9)from_kprojid(9)from_kprojid_munged(9)verify_root_map(9)
xoxo bestie, source/version: ./kernel β date: October 2026 β make_kuid(9) signing off πβ¨
π¦ 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