v9fs_vfs_mkdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, both dir and dentry say "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:

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