STRUCT UBIFS_ZBRANCH(9)
π struct ubifs_zbranch(9) π
okay so bestie, welcome to the Kernel API Manual β yes, we're doing kernel API now, we contain multitudes π§β¨. This page is all about struct ubifs_zbranch, which is literally a key/coordinate/length branch stored in znodes. That's the whole vibe. It's giving "small struct, big responsibilities" π
β¨ SYNOPSIS β¨
ok so here's the actual shape of it, and yes, it's an anonymous union, we love a mystery π:
struct ubifs_zbranch {
union ubifs_key key;
union {
struct ubifs_znode *znode;
void *leaf;
};
int lnum;
int offs;
int len;
u8 hash[UBIFS_HASH_ARR_SZ];
};
πΈ Members πΈ
bestie, let's go through the members one by one, no skipping, we don't do that here π«Ά
keyβ the key. that's it. that's the field π{unnamed_union}β anonymous. spooky. mysterious. no name, all vibes πznodeβ the znode address in memory πleafβ the leaf node πlnumβ the LEB number of the target node (and heads up, that target node can be an indexing node or a data node β both valid, both iconic) π₯offsβ the target node's offset withinlnumπ―lenβ the target node length πhashβ the hash of the target node π
π¦ SEE ALSO π¦
no cap, this is a long list, so buckle up β all of these live in the kernel file ./fs/ubifs/ubifs.h:
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_bud(9)struct ubifs_jhead(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)
fr fr, go read those if you wanna actually understand the indexing situation. iykyk π
okay that's the whole page bestie, you ate that π«Άβ¨ this one came from ./fs/ubifs and it's dated October 2026, and the footer says struct ubifs_zbranch(9) β main character energy from start to finish ππ periodt.
π¦ 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