nfsd_rename(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nfsd_rename(9) β€” Kernel API Manual πŸ¦‹

okay bestie, welcome to the group chat πŸ’– you're looking at nfsd_rename(9) from the Kernel API Manual, and it's giving "rename a directory entry" main character energy ✨ no cap.


🌸 NAME 🌸

nfsd_rename β€” rename a directory entry πŸ’…

✨ SYNOPSIS ✨

the signature is exactly this, bestie β€” copy it character for character or the vibe check will fail 🫢

__be32 nfsd_rename (struct svc_rqst *rqstp , struct svc_fh *ffhp , char
       *fname , int flen , struct svc_fh *tfhp , char *tname , int tlen );

πŸŽ€ ARGUMENTS πŸŽ€

  • rqstp β€” the RPC transaction context, aka the request's little passport 🌈
  • ffhp β€” the file handle of parent directory containing the entry to be renamed πŸ—‚οΈ
  • fname β€” the filename of directory entry to be renamed ✏️
  • flen β€” the length of fname in octets πŸ“
  • tfhp β€” the file handle of parent directory to contain the renamed entry πŸ“
  • tname β€” the filename of the new entry 🏷️
  • tlen β€” the length of tlen in octets πŸ‘€ that's what the page says, and we're not editing the icon's receipts, fr fr

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: after this call _both_ ffhp and tfhp need an fh_put β€” literally both of them, bestie, don't leave either one hanging 😭.

it returns a generic NFS status code in network byte-order ✨.

πŸ’… SEE ALSO πŸ’…

the kernel file ./fs/nfsd/vfs.c is in the chat too πŸ‘‹ and these are the linked icons, all in their exact (9) glory:


xoxo, your resident Unix bestie πŸ§šπŸ’– β€” this page's source/version is ./fs/nfsd, dated October 2026, and that's the footer flex periodt πŸ’…

πŸ“¦ where this page comes from