inc_nlink(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to inc_nlink(9) β€” this is a page from the Kernel API Manual, and honestly it's a tiny little icon that does one (1) thing. let's get into it πŸ’…


🌸 NAME 🌸

inc_nlink β€” directly increment an inode's link count. that's it. that's the whole job. she's focused, she's minimal, she's serving ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void inc_nlink (struct inode *inode );

like look at her. void, one pointer, no notes. main character energy fr fr πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • inode β€” it's an inode. that's literally the whole description. the inode you're incrementing. the one and only. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” this is a low-level filesystem helper, and its whole purpose in life is to replace any direct filesystem manipulation of i_nlink. instead of everybody out here raw-dogging i_nlink by hand (messy, chaotic, not the vibe), you call this instead. slay.

and the honest-to-god lore? currently, it is only here for parity with dec_nlink. that's right β€” she exists so her sibling isn't doing it alone. it's giving matching outfits. it's giving "we ride together, we decrement together." no cap πŸ˜­πŸ¦‹


🌈 SEE ALSO 🌈

okay this is the part where the page goes absolutely feral and lists what feels like every inode function in the entire kernel. buckle up bestie, we're going through all of them, and yes, all of them are in (9):

like, she knows everyone. connected queen πŸ‘‘ go read them if you want the full inode cinematic universe iykyk πŸ’œ


πŸŽ€ ngl the biggest takeaway is: don't touch i_nlink directly, use the helper, and remember she's literally just here to mirror dec_nlink. iconic behaviour, zero notes.

and that's the whole page bestie!! this cutie comes from ./fs and the date on it is October 2026 β€” so yeah, she's a whole timestamped moment. go forth and increment responsibly πŸ’–βœ¨πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from