ksmbd_vfs_fsync(9)
π ksmbd_vfs_fsync β like, the Kernel API Manual, but make it cute π
okay so bestie, welcome to the ksmbd_vfs_fsync(9) page β yes that's the manual name, it's giving very "kernel docs but make it a group chat" energy, and honestly? we're obsessed. this is the vfs helper for smb fsync, fr fr. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
ksmbd_vfs_fsync β the vfs helper for smb fsync πΈ
like, that's the whole vibe. it's the little helper that handles the smb fsync situation. no cap.
π¦ SYNOPSIS π¦
int ksmbd_vfs_fsync (struct ksmbd_work *work , u64 fid , u64 p_id );
look at her. three args, returns an int, absolutely iconic π
π§ ARGUMENTS π§
workβ the work. yes, that's genuinely all the detail we get, and honestly? she's the main character.workiswork. periodt. πfidβ the file id of the open file π₯ that's your actual file, the one that's open, the one we care about.p_idβ the persistent file id β the long-term, "still here after the reboot" kind of id. iykyk.
π«Ά RETURN π«Ά
0 on success β slay, everything worked π
anything else = error π so like, always check it, bestie. lowkey important.
π SEE ALSO π
okay so there's a whole friend group here and we're not leaving anybody out:
Kernel file ./fs/smb/server/vfs.c β that's where the whole squad lives π
ksmbd_vfs_create(9)ksmbd_vfs_mkdir(9)check_lock_range(9)ksmbd_vfs_read(9)ksmbd_vfs_write(9)ksmbd_vfs_getattr(9)ksmbd_vfs_remove_file(9)ksmbd_vfs_link(9)ksmbd_vfs_truncate(9)ksmbd_vfs_listxattr(9)ksmbd_vfs_getxattr(9)ksmbd_vfs_setxattr(9)ksmbd_vfs_set_fadvise(9)ksmbd_vfs_empty_dir(9)ksmbd_vfs_lookup_in_dir(9)ksmbd_vfs_kern_path(9)ksmbd_vfs_kern_path_start_removing(9)ksmbd_vfs_init_kstat(9)
no gatekeeping here, they all ate π β¨
heads up bestie: the manpage literally gives usworkasworkfor the first argument, so don't come for me β I'm just the messenger π«Ά
and that's the page!! π this little beauty lives over in ./fs/smb/server, dated October 2026, and it's the ksmbd_vfs_fsync(9) page from the Kernel API Manual. mwah, go sync something, ily, 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