STRUCT UBIFS_LPT_LPROPS(9)
π 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, and1means "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, and1means "reserved for commit". so like, hands off, it's booked. π
fr fr bothtgcandcmtareunsignedbitfields 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
- 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