STRUCT UBIFS_BUD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ubifs_bud(9) ✨

okay so bestie, welcome to struct ubifs_bud(9) from the Kernel API Manual β€” yes, the Kernel API Manual, we're doing big-brain kernel things today and honestly? it's giving main character energy πŸŽ€


πŸ’– NAME πŸ’–

struct ubifs_bud β€” a bud logical eraseblock. that's it. that's the whole name. a bud. a little baby eraseblock. no cap, iconic naming πŸ’…


🌸 SYNOPSIS 🌸

here's the struct in all her glory, copy it exactly bestie, every semicolon matters πŸ‘‘

struct ubifs_bud {
    int lnum;
    int start;
    int jhead;
    struct list_head list;
    struct rb_node rb;
    struct shash_desc *log_hash;
 };

πŸ¦‹ Members πŸ¦‹

okay this is the part where you actually pay attention, bestie, because each field has a job and they all serve 🫢

  • lnum β€” the logical eraseblock number. literally her address, that's who she is πŸ”₯
  • start β€” where the (uncommitted) bud data starts. uncommitted, meaning it's not locked in yet β€” so like, not official yet, still pending, we love a work-in-progress ✨
  • jhead β€” the journal head number that this bud belongs to. she's got a squad and this is her squad's ID number πŸ’œ
  • list β€” a link in the list of buds that belong to the same journal head. besties are all in one group chat, lowkey same vibe 🌈
  • rb β€” a link in the tree of all the buds. yep, everyone. the whole red-black tree of bud-ness. main character energy across the entire tree πŸ‘‘
  • log_hash β€” the log hash from the commit start node all the way up to this bud. that's the range, exactly that range, don't get it twisted πŸ“
ngl bestie, if you mix up which field links to which structure, the vibes will be immaculate but the code will not be. list = same journal head. rb = the whole tree. periodt πŸ’€

⭐ SEE ALSO ⭐

here's the whole friend group, and we do not skip any of them β€” the Kernel file ./fs/ubifs/ubifs.h says hi, and then it's:

struct ubifs_old_idx(9), struct ubifs_scan_node(9), struct ubifs_scan_leb(9), struct ubifs_gced_idx_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_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) 🧚

like, that's the whole roster. obsessed with how thorough this is honestly πŸ”₯


aaaand that's the page bestie!! πŸ’– brought to you from ./fs/ubifs, dated October 2026, and yeah β€” the footer says struct ubifs_bud(9) one more time because she deserves the last word. slay, go read your kernel headers, you got this 🌟

πŸ“¦ where this page comes from