v9fs_vfs_mknod(9)
π« 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:
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_mkdir(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)
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
- 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