ksmbd_vfs_getattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, bestie
  • stat β€” 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:


🧚 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