STRUCT UBIFS_BUD(9)
β¨ 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
- 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