ksmbd_vfs_init_kstat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a char **, so it's giving pointer-to-a-pointer, iykyk.
  • ksmbd_kstat β€” the ksmbd kstat wrapper πŸŽ€ your friendly lil wrapper struct of type struct ksmbd_kstat that'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:

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