STRUCT UBIFS_GCED_IDX_LEB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ubifs_gced_idx_leb(9) β€” the kernel API manual, but make it make sense

okay bestie, so this is a page from the Kernel API Manual (yes, the (9) section, we're in the big leagues now πŸŽ€) and it's all about one little struct. Let me put you on.


🌸 NAME 🌸

struct ubifs_gced_idx_leb β€” literally the garbage-collected indexing LEB. that's it, that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

struct ubifs_gced_idx_leb {
    struct list_head list;
    int lnum;
    int unmap;
};

look at her. three members. iconic. not a single wasted field. πŸ‘‘


🫢 Members 🫢

so let's do a little meet-and-greet with the fields, mwah:

  • list β€” a list. yes queen, it's a list, that's the entire job description and she's slaying it. πŸ”₯
  • lnum β€” the LEB number. that's the number of the LEB. iykyk. 🧚
  • unmap β€” "OK to unmap this LEB". like a little permission slip for unmapping. sign here bestie. ✍️

πŸ’€ Description πŸ’€

okay so this whole data structure exists to temporarily store garbage-collected indexing LEBs. read that again: temporary. not forever. she's just visiting.

and here's the tea β€” these LEBs are not released immediately, they only get released after the next commit. not before, not "whenever," after the next commit. periodt. πŸ’…

<b>why</b> tho? because this is needed to guarantee recoverability. so it's not just being dramatic and holding on to things β€” there's a whole recovery reason. main character behavior with a purpose. 🌟


πŸ”₯ SEE ALSO πŸ”₯

grab a snack, this list is long and we're going through every single one, no skipping, fr fr:

Kernel file ./fs/ubifs/ubifs.h β€” the actual file, go read it β€” along with:

  • struct ubifs_old_idx(9)
  • struct ubifs_scan_node(9)
  • struct ubifs_scan_leb(9)
  • struct ubifs_inode(9)
  • struct ubifs_unclean_leb(9)
  • struct ubifs_lprops(9)
  • struct ubifs_lpt_lprops(9)
  • struct ubifs_lp_stats(9)
  • struct ubifs_cnode(9)
  • struct ubifs_pnode(9)
  • struct ubifs_nbranch(9)
  • struct ubifs_nnode(9)
  • struct ubifs_lpt_heap(9)
  • struct ubifs_wbuf(9)
  • struct ubifs_bud(9)
  • struct ubifs_jhead(9)
  • struct ubifs_zbranch(9)
  • struct ubifs_znode(9)
  • struct bu_info(9)
  • struct ubifs_node_range(9)
  • struct ubifs_compressor(9)
  • struct ubifs_budget_req(9)
  • struct ubifs_orphan(9)
  • struct ubifs_mount_opts(9)
  • struct ubifs_budg_info(9)
  • struct ubifs_stats_info(9)
  • struct ubifs_info(9)
  • ubifs_check_hash(9)
  • ubifs_check_hmac(9)
  • ubifs_branch_hash(9)
  • ubifs_copy_hash(9)
  • ubifs_auth_node_sz(9)

that's thirty-three things plus the header file itself. we counted. we're obsessed. 🌈


heads up bestie: this is kernel internals β€” if you're poking at it, you're already the kind of person who reads ./fs/ubifs/ubifs.h for fun, and honestly? respect. 🫑

alright that's the page!! it lives in ./fs/ubifs, dated October 2026, and this whole manual page is struct ubifs_gced_idx_leb(9). mwah, go touch grass, then go read the kernel source. bye bestie!! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from