nfsd_nl_fh_key_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 nfsd_nl_fh_key_set(9) 🌸

hiii bestie! this page is from the Kernel API Manual, and the main character is literally nfsd_nl_fh_key_set(9) 🫢. it's a tiny helper with big β€œread the rules first” energy, so let's go πŸ’….


πŸ’… NAME πŸ’…

nfsd_nl_fh_key_set β€” helper to copy fh_key from userspace ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int nfsd_nl_fh_key_set (const struct nlattr *attr , struct nfsd_net *nn
);

πŸŽ€ ARGUMENTS πŸŽ€

  • attr β€” the nlattr NFSD_A_SERVER_FH_KEY πŸ‘‘
  • nn β€” the nfsd_net πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

okay so the rules, fr fr: callers should hold nfsd_mutex πŸ”’. it returns 0 on success or a negative errno 😭.

callers must ensure the server is shut down (sv_nrthreads == 0) β€” userspace documentation asserts the key may only be set when the server is not running. periodt. no sneaky running-server key-setting, bestie πŸš«πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/nfsd/nfsctl.c is right here, and these besties are linked too:


xoxo, bestie πŸ’– β€” source ./fs/nfsd, October 2026, page nfsd_nl_fh_key_set(9). slay and goodbye! πŸŽ€βœ¨

πŸ“¦ where this page comes from