ksmbd_vfs_mkdir(9)
β¨ 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 thestruct 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 π
0on 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:
ksmbd_vfs_create(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)ksmbd_vfs_init_kstat(9)
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
- 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