gfs2_link(9)
πΈ gfs2_link(9) β a Kernel API Manual moment πΈ
okay so bestie, we're in the gfs2_link page of the Kernel API Manual and honestly? it's a little one. a lil snack. but we're gonna read it together because that's what besties do π«Ά
β¨ NAME β¨
gfs2_link β literally just: link to a file. that's the whole vibe. Link to a file π
β¨ SYNOPSIS β¨
int gfs2_link (struct dentry *old_dentry , struct inode *dir , struct
dentry *dentry );
not me copying the line break exactly the way the manpage had it, i'm so real for that π anyway β it takes three things and gives you back an int, periodt.
β¨ ARGUMENTS β¨
old_dentryβ the inode you wanna link. this is the main character of the operation, the thing being pointed at πdirβ the directory you're adding the link into. it's the venue, the location, the place where the new name shows up πdentryβ the name of the link itself. the label. the nametag at the party π·οΈ
β¨ DESCRIPTION β¨
so what it does: it links the inode inside old_dentry into the directory dir, using the name that lives in dentry. that's it. that's the whole thing. three pointers walk into a filesystem and one link comes out β¨
like β old thing, new place, new name. slay. no cap, that's genuinely all this page says, we're not gonna pretend there's lore π¦
β¨ RETURN β¨
errno β yes, that's the entire return section. one word. iconic honestly, she said "figure it out" π
β¨ SEE ALSO β¨
okay this is where it gets unhinged β the see-also list on this page is long and i'm obsessed with her for it. also! the kernel file it points at is ./fs/gfs2/inode.c π
gfs2_set_iop(9)gfs2_inode_lookup(9)gfs2_lookup_by_inum(9)gfs2_lookup_meta(9)gfs2_lookupi(9)create_ok(9)gfs2_init_xattr(9)init_dinode(9)gfs2_trans_da_blks(9)gfs2_create_inode(9)gfs2_create(9)__gfs2_lookup(9)gfs2_unlink_inode(9)gfs2_unlink(9)gfs2_symlink(9)gfs2_mkdir(9)gfs2_mknod(9)gfs2_atomic_open(9)update_moved_ino(9)gfs2_rename(9)gfs2_exchange(9)gfs2_get_link(9)gfs2_permission(9)gfs2_setattr(9)gfs2_getattr(9)
like, twenty-five entries. she's thorough. she's giving overachiever. we respect it π
lowkey a note to self: this page is short but every word of it is load-bearing, so don't go embellishing. facts only, bestie π
aaaand that's the page!! ./fs/gfs2 is the source, October 2026 is the date, and gfs2_link(9) is her name β mwah, love u, go link some files responsibly π§π
π¦ 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