kernfs_rename_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kernfs_rename_ns(9)

okay so welcome to the Kernel API Manual bestie, today we're reading the kernfs_rename_ns(9) page and honestly? she's short, she's sweet, she moves nodes and renames them in one go. main character energy fr fr 🌸


✨ NAME ✨

kernfs_rename_ns β€” move and rename a kernfs_node πŸ¦‹

yes. both. one function. she does it all πŸ’…


✨ SYNOPSIS ✨

int kernfs_rename_ns (struct kernfs_node *kn , struct kernfs_node *new_parent , const char *new_name , const struct ns_common *new_ns );

✨ ARGUMENTS ✨

  • kn β€” the target node πŸ‘‘ like, the node we're actually doing stuff to
  • new_parent β€” the new parent to put sd under 🫢 (yes, the page says sd, we don't question the lore, we just pass it along)
  • new_name β€” the new name, literally just the name she's getting πŸŽ€
  • new_ns β€” the new namespace tag 🏷️

✨ RETURN ✨

0 on success, -errno on failure. that's the whole vibe check β€” zero means slay, negative errno means something went off 😭


✨ SEE ALSO ✨

Kernel file ./fs/kernfs/dir.c β€” that's where the source lives, go say hi 🫢

and then the entire friend group, no cap, all of these:

that's the whole group chat, mwah πŸ’‹


ngl the entire page is like four sections long β€” short queen behavior, we respect it πŸŽ€

okay that's the tea, bestie πŸ“ this one came out of ./fs/kernfs, dated October 2026, and the page is literally called kernfs_rename_ns(9) β€” iykyk. go forth and rename responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from