v9fs_vfs_link(9)
π v9fs_vfs_link β Kernel API Manual β¨
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:
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_mknod(9)
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
- 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