v9fs_vfs_mkdir(9)
π v9fs_vfs_mkdir(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this one lives in the Kernel API Manual and it's literally the VFS mkdir hook that makes directories happen. yes ma'am, directory creation but make it kernel-space π
πΈ NAME πΈ
v9fs_vfs_mkdir β the VFS mkdir hook to create a directory ποΈ
β¨ SYNOPSIS β¨
struct dentry * v9fs_vfs_mkdir (struct mnt_idmap *idmap , struct inode
*dir , struct dentry *dentry , umode_t mode );
it returns a struct dentry *, and it takes exactly these four things, in this exact order, no cap π
π¦ ARGUMENTS π¦
idmapβ the idmap of the mount πͺͺdirβ inode that is being unlinked πdentryβ dentry that is being unlinked πmodeβ mode for new directory β¨
yes bestie i know, bothdiranddentrysay "being unlinked" β that's literally what the page says, i'm not making the rules, i'm just relaying them π«Ά
π SEE ALSO π
Kernel file ./fs/9p/vfs_inode.c, plus the whole squad of friends β every single one of them, in this exact order, fr fr:
unixmode2p9mode(9)p9mode2perm(9)p9mode2unixmode(9)v9fs_uflags2omode(9)v9fs_blank_wstat(9)v9fs_alloc_inode(9)v9fs_free_inode(9)v9fs_evict_inode(9)v9fs_at_to_dotl_flags(9)v9fs_dec_count(9)v9fs_remove(9)v9fs_create(9)v9fs_vfs_create(9)v9fs_vfs_lookup(9)v9fs_vfs_unlink(9)v9fs_vfs_rmdir(9)v9fs_vfs_rename(9)v9fs_vfs_getattr(9)v9fs_vfs_setattr(9)v9fs_stat2inode(9)v9fs_vfs_get_link(9)v9fs_vfs_mkspecial(9)v9fs_vfs_symlink(9)v9fs_vfs_link(9)v9fs_vfs_mknod(9)
like, the entire 9p friend group showed up to the function call, obsessed ππ
okay that's the whole page, mwah π now go forth and make your directories, the kernel is rooting for you. this iconic little number ships out of ./fs/9p, dated October 2026, and it goes by v9fs_vfs_mkdir(9) β periodt. πβ¨π¦
π¦ 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