STRUCT UBIFS_NNODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct ubifs_nnode(9) πŸ’œ

okay so bestie, welcome to the Kernel API Manual β€” we're doing a deep dive on one struct today and honestly? it's giving main character energy in the LEB Properties Tree ✨


πŸŽ€ NAME πŸŽ€

struct ubifs_nnode β€” the LEB Properties Tree internal node. yep, the middle-of-the-tree icon, not a leaf, not the root, the in-between queen πŸ‘‘


🌸 SYNOPSIS 🌸

struct ubifs_nnode {
    struct ubifs_nnode *parent;
    struct ubifs_cnode *cnext;
    unsigned long flags;
    int iip;
    int level;
    int num;
    struct ubifs_nbranch nbranch[UBIFS_LPT_FANOUT];
 };

literally the whole shape of her 🫢


πŸ¦‹ Members πŸ¦‹

  • parent β€” the parent nnode πŸ’– you know, the one who made her
  • cnext β€” next cnode to commit πŸ“
  • flags β€” flags, and the valid ones are DIRTY_LPT_NODE or OBSOLETE_LPT_NODE 🚩
  • iip β€” her index in the parent (where she sits in the lineup, iykyk)
  • level β€” level in the tree, and no cap: for nnodes this is always greater than zero ⭐
  • num β€” node number πŸ”’
  • nbranch β€” branches to the child nodes 🌈

πŸ”₯ SEE ALSO πŸ”₯

okay this list is LONG but we do not skip, we do not summarise, we are thorough besties πŸ’…

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_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)

nnode said "read the whole SEE ALSO list" and honestly? she's right, no skipping the reading, bestie πŸ˜­πŸ“š

and that's the page!! πŸ’€βœ¨ brought to you by ./fs/ubifs, version dated October 2026, filed under struct ubifs_nnode(9) β€” slay, go read the kernel source, ily πŸ§šπŸ’œ

πŸ“¦ where this page comes from