simple_offset_rename(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

okay so bestie, this is simple_offset_rename(9) from the Kernel API Manual β€” and it handles directory offsets for rename. that's the vibe ✨

🌸 SYNOPSIS 🌸

here's the exact signature, no cap:

void simple_offset_rename (struct inode *old_dir , struct dentry
       *old_dentry , struct inode *new_dir , struct dentry *new_dentry );

it returns void, so like, no return-value drama πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • old_dir β€” parent directory of source entry πŸ’–
  • old_dentry β€” dentry of source entry 🫢
  • new_dir β€” parent_directory of destination entry 🌸
  • new_dentry β€” dentry of destination πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

Caller provides appropriate serialization. fr fr, that part is on you.

User space expects the directory offset value of the replaced (new) directory entry to be unchanged after a rename. the way that matters is lowkey iconic πŸ‘‘

🚨 must-know: Caller must have grabbed a slot for new_dentry in the maple_tree associated with new_dir, even if dentry is negative. do not skip this, bestie 😭

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./fs/libfs.c, plus all these function pages β€” go be nosy, it's giving research era 🧚✨


mwah πŸ’‹ that's the page! source/version: ./fs Β· date: October 2026 Β· page: simple_offset_rename(9) β€” bye bestie, slay your kernel adventures 🫢🌈

πŸ“¦ where this page comes from