make_kuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 the uid is 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:


xoxo bestie, source/version: ./kernel β€” date: October 2026 β€” make_kuid(9) signing off πŸ’œβœ¨

πŸ“¦ where this page comes from