simple_fsync(9)
β¨ simple_fsync(9) β¨
okay so this is a page straight out of the Kernel API Manual and honestly? it's kind of a vibe. it's short, it's sweet, it's doing exactly one job and doing it well. let's get into it bestie π
πΈ NAME πΈ
simple_fsync β the fsync implementation for simple filesystems with flush. that's it. that's the whole brand. no cap π
β¨ SYNOPSIS β¨
int simple_fsync (struct file *file , loff_t start , loff_t end , int
datasync );
π ARGUMENTS π
four args, all of them pulling their weight π«Ά
fileβ the file you wanna synchronize. literally the main character of this function call β¨startβ start offset, in bytes. where the party begins πendβ end offset, in bytes, and yes it's inclusive (so the last byte gets an invite too) πdatasyncβ if this is true, you only synchronize essential metadata. lowkey a minimal-effort mode, highkey useful πΈ
π DESCRIPTION π
so simple_fsync is an fsync handler for simple filesystems. that's its whole thing π
what does it actually do? the way it: it writes out dirty data, it writes out the inode (only if that inode is dirty, it's not doing extra work for nobody), and then it issues a cache flush. that's the trifecta, that's the whole routine π₯
no cap, that's the entire description. it's giving "small function, big responsibility" energy and we're obsessed π
π¦ SEE ALSO π¦
this is the friend group, the whole group chat, everyone's invited π«Ά the kernel file lives at ./fs/libfs.c and here's everybody it wants you to meet:
simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_rename_exchange(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)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, go read them too, they're all icons in their own right ππ
ok that's the page!! this one came from ./fs and it's dated October 2026 β so yeah, mark your calendar bestie, the manpage said so π
β¨ mwah, bye! ππ§πΈ
π¦ 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