ksmbd_vfs_init_kstat(9)
π ksmbd_vfs_init_kstat(9) β the kernel api manual, but make it make sense
okay so bestie, welcome to the ksmbd_vfs_init_kstat(9) page β¨ this is one of those lil kernel API manpages, and honestly? it's short, it's sweet, and it does exactly one (1) thing. let's get into it π
πΈ NAME πΈ
ksmbd_vfs_init_kstat β the glow-up function that converts unix stat information to smb stat format π«
like, it takes the unix-y version of "here's what's up with this file" and translates it into the smb-y version. bilingual icon behavior, no cap π
β¨ SYNOPSIS β¨
void * ksmbd_vfs_init_kstat (char **p , struct ksmbd_kstat *ksmbd_kstat
);
yeah, that's the whole signature. two args, returns a void *. simple, clean, main character energy π
π¦ ARGUMENTS π¦
pβ destination buffer π«Ά literally the place where the output goes. it's achar **, so it's giving pointer-to-a-pointer, iykyk.ksmbd_kstatβ the ksmbd kstat wrapper π your friendly lil wrapper struct of typestruct ksmbd_kstatthat's carrying the kstat info into this function.
β RETURN β
returns a pointer to the converted struct file_directory_info π that's it, that's the return value. no cap.
π SEE ALSO π
okay this is the part where we shout out the whole friend group π the kernel file lives at ./fs/smb/server/vfs.c, and here's everyone in the group chat:
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_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)
all iconic, all linked, all worth a read π§ββοΈ
okay that's the whole page, bestie β it's short but it ate π go forth and convert your stats π
π§ββοΈ mwah, that's a wrap! this lil page comes from ./fs/smb/server, dated October 2026, and it's filed under ksmbd_vfs_init_kstat(9) ππ«Ά stay slay, stay converted β¨
π¦ 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