v9fs_vfs_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're diving into v9fs_vfs_link(9) today and honestly? it's giving "small function, big responsibilities." this is the 9p filesystem's hardlink girlie πŸŽ€


🌸 NAME 🌸

v9fs_vfs_link β€” create a hardlink. that's it, that's the whole vibe. one file, two names, no cap πŸ’–


✨ SYNOPSIS ✨

int v9fs_vfs_link (struct dentry *old_dentry , struct inode *dir ,
struct dentry *dentry );

like, literally three args and she returns an int. iconic behavior tbh πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • old_dentry β€” the dentry for the file you wanna link to, i.e. the original main character 🫢
  • dir β€” the inode that's the destination for the new link. this is where the new name is gonna live, bestie 🏠
  • dentry β€” the dentry for the link itself. that's the new name stepping into the group chat πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

so like, if you wanna go deeper (and you should, ngl), go check out the kernel file ./fs/9p/vfs_inode.c and these absolute legends:

whole squad, fr fr 🌈


okay that's the whole page!! this one lives under ./fs/9p and it's dated October 2026 β€” so like, mark your calendars bestie, go read it, slay, periodt πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from