simple_offs...ame_exchange(9)
π 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 π«Ά:
- Kernel file
./fs/libfs.cβ that's where she lives, iykyk π simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_destroy(9)offset_dir_llseek(9)offset_readdir(9)simple_rename_timestamp(9)simple_setattr(9)simple_write_end(9)simple_read_from_buffer(9)simple_write_to_buffer(9)memory_read_from_buffer(9)generic_encode_ino32_fh(9)generic_fh_to_dentry(9)generic_fh_to_parent(9)simple_fsync_noflush(9)simple_fsync(9)generic_check_addressable(9)simple_get_link(9)generic_ci_d_compare(9)generic_ci_d_hash(9)generic_ci_match(9)generic_set_sb_d_ops(9)inode_maybe_inc_iversion(9)inode_query_iversion(9)simple_inode_init_ts(9)path_from_stashed(9)simple_start_creating(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms