nfsd_user_namespace(9)
π nfsd_user_namespace(9) π
okay bestie, welcome to the Kernel API Manual page for nfsd_user_namespace β yes that's the manpage-y title, we're keeping the whole name because that's literally her whole identity β¨
π¦ NAME π¦
nfsd_user_namespace β gets you the user_namespace that's actually in effect for an RPC request, no cap π«Ά
πΈ SYNOPSIS πΈ
struct user_namespace * nfsd_user_namespace (const struct svc_rqst
*rqstp );
like, she takes one thing and hands you back a pointer, that's the whole vibe π
π ARGUMENTS π
rqstpβ the RPC execution context. that's it, that's the whole argument, she's lowkey low-maintenance π§
β¨ DESCRIPTION β¨
okay so here's the tea β β xpt_cred is set once at transport creation and then never modified. like, ever. it's giving "set it and forget it" main character energy π
and the transport itself is reference-counted during request processing, which means you do not need to take an explicit reference on the namespace. nope! not needed! the refcounting is already handling it for you, so don't be out here doing extra work for no reason π
π RETURN π
she returns the user_namespace from the transport credential π
but β and this is the important part β if no credential was set, you get init_user_ns instead. so it's never just nothing, you always get something π«Ά
also the returned namespace pointer is valid for the duration of the RPC request. that's the window, bestie. don't go holding onto it past that π
π SEE ALSO π
- Kernel file
./fs/nfsd/auth.cβ go read it, iykyk π
π cute little sign-off π
so this iconic little page lives in the ./fs/nfsd source tree, dated October 2026, and it's filed under nfsd_user_namespace(9) in the Kernel API Manual π go forth and namespace responsibly, bestie, 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