STRUCT UBIFS_SCAN_NODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ubifs_scan_node(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for struct ubifs_scan_node β€” literally the glow-up era of UBIFS docs πŸ’… this is the struct ubifs_scan_node(9) page and it's giving "small struct, big main character energy" πŸ¦‹


πŸ’– NAME πŸ’–

struct ubifs_scan_node β€” UBIFS scanned node information. that's it, that's the vibe πŸŽ€


🌸 SYNOPSIS 🌸

struct ubifs_scan_node {
    struct list_head list;
    union ubifs_key key;
    unsigned long long sqnum;
    int type;
    int offs;
    int len;
    void *node;
 };

no cap, that's the whole shape of it β€” copy it exactly, don't be out here renaming fields 😭


🧚 Members 🧚

okay so let's do a lil field-by-field tour, iykyk πŸ‘‘

  • list β€” list of scanned nodes. it's a linked-list situation, she's connected 🫢
  • key β€” key of node scanned (if it has one). note the "if it has one" β€” sometimes she's keyless, and that's valid πŸ’œ
  • sqnum β€” sequence number. it's an unsigned long long, so she goes big ⭐
  • type β€” type of node scanned. a whole int of category ✨
  • offs β€” offset with LEB of node scanned. LEB stands for log erase block, and yes, offs is an int πŸ”₯
  • len β€” length of node scanned. also an int, we love consistency 🌈
  • node β€” raw node. literally a void * pointing at the raw thing, no glow-up, no filter, just vibes πŸ’€
ngl bestie, this one's a plain old struct β€” no functions, no return values, no exit statuses to worry about here. just fields, and every single one of them is listed above πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/ubifs/ubifs.h and friends β€” the whole squad, matching exactly, no one left out 🫢:

  • struct ubifs_old_idx(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 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)

and that's the page bestie, you ate that πŸ’… this came from the ./fs/ubifs corner of the kernel, dated October 2026, and yes β€” the footer still says struct ubifs_scan_node(9) because we keep the receipts fr fr πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from