v9fs_vfs_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v9fs_vfs_create(9) β€” Kernel API Manual πŸ’…

Okay bestie, welcome to the Kernel API Manual corner. Today's main character is v9fs_vfs_create(9), and yes she's literally the VFS hook for creating a regular file. Vibe check: passed. ✨

πŸŽ€ NAME πŸŽ€

v9fs_vfs_create β€” VFS hook to create a regular file. That's the assignment, and she ate. Slay. πŸ’–

⭐ SYNOPSIS ⭐

int v9fs_vfs_create (struct mnt_idmap *idmap , struct inode *dir ,
       struct dentry *dentry , umode_t mode );

🫢 ARGUMENTS 🫢

  • idmap β€” the idmap of the mount. Literally the mount's idmap, no cap.
  • dir β€” the parent directory. The folder holding the situation. Iconic.
  • dentry β€” the name of file to be created. This is the name in question, fr fr.
  • mode β€” the UNIX file mode to set. Permissions energy.

🌸 DESCRIPTION 🌸

Okay so real talk: open(.., O_CREAT) is handled in v9fs_vfs_atomic_open. Do not come for v9fs_vfs_create for that, bestie β€” that's a different function's moment. This one is only called for mknod(2). Periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/9p/vfs_inode.c is where the source lives, and here's the whole friend group, iykyk:


Source/version: ./fs/9p and v9fs_vfs_create(9); date: October 2026. Bye bestie, mwah πŸ’‹

πŸ“¦ where this page comes from