search_inode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… search_inode(9) β€” like, the inode-speedrun page

okay bestie, welcome to the search_inode manual page, part of the Kernel API Manual collection ✨ this one's short and sweet and honestly kind of iconic for how specific it is πŸŽ€


🌸 NAME 🌸

search_inode β€” literally the function that goes looking for an inode inside the RB-tree of inodes πŸ”πŸ¦‹


✨ SYNOPSIS ✨

struct fsck_inode * search_inode (struct fsck_data *fsckd , ino_t inum );

that's the whole signature, no cap πŸ’…


🫢 ARGUMENTS 🫢

  • fsckd β€” the FS checking information 🧚 this is your data pass-around buddy
  • inum β€” the inode number you're trying to find πŸ‘‘ the actual target of the search

πŸ’– DESCRIPTION πŸ’–

so this is a helper function for 'check_leaf' πŸ“ what it does is it searches for the inode inum in the RB-tree of inodes, and then it hands you back an inode information pointer 🌈

and if the inode isn't in there? you get NULL. that's it, that's the whole vibe 😭 not found, no inode, no problem (well, some problem, but a returned problem) πŸ’€


πŸŽ€ SEE ALSO πŸŽ€

the lore is deep, bestie β€” this lives in the Kernel file ./fs/ubifs/debug.c πŸ“ and here's the whole extended friend group:

like, read them all, they're all connected, iykyk πŸ”₯


one thing though bestie β€” remember this page is filed under ./fs/ubifs, dated October 2026 🌸 so if you're quoting it in the group chat, that's the receipt πŸ’œ

okay that's the page, ily, go find those inodes πŸ§šβœ¨πŸ’…

πŸ“¦ where this page comes from