simple_offs...ame_exchange(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… simple_offset_rename_exchange β€” exchange rename with directory offsets

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil function with a big name and honestly? she's an icon. no cap.


🌸 NAME 🌸

simple_offset_rename_exchange β€” exchange rename with directory offsets 🫢


⭐ SYNOPSIS ⭐

int simple_offset_rename_exchange (struct inode *old_dir , struct dentry
*old_dentry , struct inode *new_dir , struct dentry *new_dentry );

literally just four args, all of them pointers, and she returns an int. slay. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • old_dir β€” the parent of the dentry that's being moved. like, the current home of the thing 🏠
  • old_dentry β€” the dentry being moved. yes queen, get relocated ✈️
  • new_dir β€” the destination parent. the new address, if you will πŸ“¬
  • new_dentry β€” the destination dentry. the spot she's landing in 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? this API preserves the directory offset values. that's the whole vibe. the offsets stay intact, nothing gets scrambled, we love a consistent queen πŸ‘‘

one thing though β€” the caller has to provide appropriate serialization. that's on you, bestie, not her πŸ™ˆ

as for what she gives back: returns zero on success ✨ otherwise a negative errno is returned β€” and the rename gets rolled back. so if it goes wrong, she literally undoes it. no messy leftovers, we stan a clean exit πŸ˜­πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, gathered for you 🫢:

like I said. big friend group. main character energy all around πŸ‘‘πŸŒˆ


that's the whole page, bestie 🌸 and for the cute sign-off: this one comes from ./fs ✨ dated October 2026 πŸŽ€ and yup, the footer repeats the title simple_offs...ame_exchange(9) β€” she said "my name is my name" πŸ’œ bye bestie, go preserve those offsets πŸ¦‹πŸ’–

πŸ“¦ where this page comes from