v9fs_vfs_mknod(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« v9fs_vfs_mknod β€” like, the special-file maker πŸ’«

okay so bestie, welcome to the v9fs_vfs_mknod(9) page β€” it lives in the Kernel API Manual, which is honestly the most main-character manual there is πŸŽ€


🌸 NAME 🌸

v9fs_vfs_mknod β€” create a special file ✨

🌈 SYNOPSIS 🌈

int v9fs_vfs_mknod (struct mnt_idmap *idmap , struct inode *dir , struct
dentry *dentry , umode_t mode , dev_t rdev );

no cap, that's the whole signature β€” she's compact and she knows it πŸ’…

πŸ¦‹ ARGUMENTS πŸ¦‹

so here's the group chat roll call of parameters, and yes you need all of them:

  • idmap β€” the idmap of the mount 🫢 like, the identity mapping this mount is vibing with.
  • dir β€” inode destination for the new link πŸ“ (yes, the docs call it a "link" here β€” we're just reporting the facts, bestie).
  • dentry β€” dentry for the file πŸ—‚οΈ the little directory-entry glow-up in question.
  • mode β€” mode for creation 🎚️ the permission/type bits it gets born with.
  • rdev β€” device associated with the special file πŸ”Œ very much the point of a special file, periodt.
ngl the argument list is short but every single one is carrying its weight β€” don't skip any of them πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the Kernel file ./fs/9p/vfs_inode.c, plus this whole iconic friend group of functions β€” literally the whole 9p crew, iykyk:


and that's the whole page, bestie β€” go forth and mknod responsibly πŸ§šβ€β™€οΈ

./fs/9p Β· October 2026 Β· v9fs_vfs_mknod(9) β€” that's the source path, the date, and the version header, all tucked into one cute little sign-off πŸ“πŸ’– slay.
πŸ“¦ where this page comes from