ksmbd_vfs_getattr(9)
π ksmbd_vfs_getattr(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function with main character energy β it's the vfs helper for smb getattr, no cap π
πΈ NAME πΈ
ksmbd_vfs_getattr β vfs helper for smb getattr π«Ά
β¨ SYNOPSIS β¨
int ksmbd_vfs_getattr (const struct path *path , struct kstat *stat );
like, that's the whole vibe check right there π
π¦ ARGUMENTS π¦
pathβ path of dentry ποΈ literally the path you're pointing at, bestiestatβ pointer to returned kernel stat structure π it's a pointer, and it's where the kernel stat struct comes back to you, iykyk
π₯ RETURN π₯
0 on success, otherwise error π β yes that's it, that's the whole story. zero means slay, anything else means something went sideways, periodt.
π SEE ALSO π
Kernel file ./fs/smb/server/vfs.c β go read it fr fr π and also these iconic siblings:
ksmbd_vfs_create(9)ksmbd_vfs_mkdir(9)check_lock_range(9)ksmbd_vfs_read(9)ksmbd_vfs_write(9)ksmbd_vfs_fsync(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)
π§ a whole friend group of vfs helpers and ksmbd_vfs_getattr is out here doing its one little job. obsessed. π
kisses bestie π this page came from ./fs/smb/server and it's dated October 2026, so likeβ¦ mark your calendar, mwah ππ
β¨
π¦ 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