ksmbd_vfs_mkdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ksmbd_vfs_mkdir(9) ✨

okay so bestie, welcome to the Kernel API Manual page for ksmbd_vfs_mkdir β€” yes it's a whole function name, no we're not scared of it πŸ’… this is the little vfs helper that handles smb create directory for you, and honestly? it's giving underrated icon energy πŸŽ€


🌸 NAME 🌸

ksmbd_vfs_mkdir β€” the vfs helper for smb create directory 🫢 like, that's literally her job, that's what she does, periodt.


✨ SYNOPSIS ✨

int ksmbd_vfs_mkdir (struct ksmbd_work *work , const char *name ,
       umode_t mode );

look at that signature, so clean, so intentional, we stan πŸ˜­πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • work β€” the work, bestie. that's the struct ksmbd_work * right there. she's the work 🫑
  • name β€” the directory name that is relative to share β€” key detail, don't forget it, iykyk ✨
  • mode β€” the directory create mode, aka the vibe settings for your new dir 🌈

πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸŽ‰ (slay, we love a clean zero)
  • otherwise error πŸ’€ (not slay, but at least you know)
fr fr: zero means it worked. anything else means it did not, and that's the whole tea.

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, no cap β€” every single one of these cuties lives in the Kernel file ./fs/smb/server/vfs.c:


aaand that's the page, bestie πŸ§šπŸ’« it comes straight out of ./fs/smb/server, dated October 2026, and it's filed under ksmbd_vfs_mkdir(9) β€” go make some directories, you've got this πŸ”₯πŸ“πŸ’…

πŸ“¦ where this page comes from