STRUCT UBIFS_ZNODE(9)
π struct ubifs_znode(9) π
okay bestie, so this is a page from the Kernel API Manual, and today's main character is struct ubifs_znode β the in-memory representation of an indexing node. no cap, that's literally what it is. and the kernel file it lives in is ./fs/ubifs/ubifs.h, in case you were wondering where to find it. π
β¨ SYNOPSIS β¨
here's the whole glow-up, in code, exactly as it is:
struct ubifs_znode {
struct ubifs_znode *parent;
struct ubifs_znode *cnext;
struct ubifs_znode *cparent;
int ciip;
unsigned long flags;
time64_t time;
int level;
int child_cnt;
int iip;
int alt;
int lnum;
int offs;
int len;
struct ubifs_zbranch zbranch[];
};
π Members π
ok so each of these fields has lore, let's get into it:
parentβ the parent znode, orNULLif this girly is the root. main character energy, honestly.cnextβ the next znode to commit.cparentβ the parent node for this commit.ciipβ the index incparent'szbrancharray.flagsβ the znode flags (DIRTY_ZNODE,COW_ZNODEorOBSOLETE_ZNODE). pick your fighter πtimeβ last access time, in seconds.levelβ the level of the entry in the TNC tree.child_cntβ how many child znodes there are.iipβ the index in the parent'szbrancharray.altβ lower bound of the key range has altered, i.e. a child got inserted at slot 0.lnumβ LEB number of the corresponding indexing node.offsβ offset of the corresponding indexing node.lenβ length of the corresponding indexing node.zbranchβ array of znode branches (c->fanoutelements).
πΈ Description πΈ
β οΈ Note! thelnum,offs, andlenfields are not really needed β we have them only for internal consistency check. they could be removed to save some RAM. so like... they're just vibing there for safety. ngl, relatable. π
π¦ SEE ALSO π¦
Kernel file ./fs/ubifs/ubifs.h, plus the whole friend group:
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_zbranch(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)
and that's the whole page, bestie, you ate that π«Ά this little drop came from ./fs/ubifs and it's dated October 2026 β iconic, 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