STRUCT UBIFS_LPT_LPROPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ubifs_lpt_lprops(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this is the page for struct ubifs_lpt_lprops, which literally just means LPT logical eraseblock properties πŸŽ€ (LPT = LPT, you already know, iykyk). It's one of those little structs that lives in ./fs/ubifs and just holds the vibe check numbers for a logical eraseblock. no cap.


✨ SYNOPSIS ✨

struct ubifs_lpt_lprops {
    int free;
    int dirty;
    unsigned tgc:1;
    unsigned cmt:1;
 };

that's the whole thing. four members. she's compact. she's iconic. πŸ¦‹


🌸 MEMBERS 🌸

  • free β€” how much free space is chilling in there, counted in bytes. πŸ’–
  • dirty β€” how much dirty space is sitting in there, also in bytes. yes it's the messier sibling, we don't judge πŸ™ˆ
  • tgc β€” the trivial GC flag. it's a single bit, and 1 means "unmap after commit end". so if she's set, she gets unmapped once the commit finishes. periodt. ✨
  • cmt β€” the commit flag. also a single bit, and 1 means "reserved for commit". so like, hands off, it's booked. πŸ’…
fr fr both tgc and cmt are unsigned bitfields of exactly :1 β€” one bit each, no more, no less. do not come for them.

πŸ‘‘ SEE ALSO πŸ‘‘

all the neighbors in Kernel file ./fs/ubifs/ubifs.h β€” go say hi, they're all linked up and honestly the whole friend group is giving main character energy 🌈:

  • 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_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 whole page, bestie 🫢 go read the source, it's living at ./fs/ubifs β€” this drop is from October 2026, straight outta the Kernel API Manual, and the header/footer both rep struct ubifs_lpt_lprops(9) πŸ’œ slay, bye! πŸ§šπŸ“

πŸ“¦ where this page comes from