lpt_gc(9)
π lpt_gc (it's a kernel API thing, iykyk)
okay so bestie, welcome to lpt_gc β a page straight out of the Kernel API Manual and honestly? she's giving backend-main-character energy. it's lowercase, it's mysterious, and it's doing LPT garbage collection for UBIFS. let's get into it π«Ά
β¨ NAME β¨
lpt_gc β LPT garbage collection. that's it, that's the whole vibe. no cap. ποΈβ¨
πΈ SYNOPSIS πΈ
int lpt_gc (struct ubifs_info *c );
yes that one little int returns and yes it takes exactly one argument. copy it exactly, bestie, don't be out here retyping the signature from memory π
π ARGUMENTS π
cβ the UBIFS file-system description object. that's your whole context right there, she's holding all the info π
π¦ DESCRIPTION π¦
okay so what does she actually do? she selects an LPT LEB for LPT garbage collection and then calls lpt_gc_lnum. iconic behaviour, honestly π
and what does she return?
0on success β slay, we ate π- a negative error code on failure β not slay, but at least you know π
fr fr, that's the whole description. no secret extra behaviour, no hidden flags. don't go inventing stuff, i'm warning you π
π SEE ALSO π
okay this section is long and we are NOT skipping a single one of these, periodt. so grab a snack π β here's the whole group chat:
- Kernel file
./fs/ubifs/lpt_commit.cβ the actual source, go say hi first_dirty_cnode(9)next_dirty_cnode(9)get_cnodes_to_commit(9)upd_ltab(9)alloc_lpt_leb(9)layout_cnodes(9)realloc_lpt_leb(9)write_cnodes(9)next_pnode_to_dirty(9)add_pnode_dirt(9)do_make_pnode_dirty(9)make_tree_dirty(9)need_write_all(9)lpt_tgc_start(9)lpt_tgc_end(9)populate_lsave(9)nnode_lookup(9)make_nnode_dirty(9)make_pnode_dirty(9)make_ltab_dirty(9)make_lsave_dirty(9)make_node_dirty(9)get_lpt_node_len(9)get_pad_len(9)get_lpt_node_type(9)is_a_node(9)lpt_gc_lnum(9)ubifs_lpt_start_commit(9)free_obsolete_cnodes(9)ubifs_lpt_end_commit(9)ubifs_lpt_post_commit(9)first_nnode(9)next_nnode(9)ubifs_lpt_free(9)dbg_is_all_ff(9)dbg_is_nnode_dirty(9)dbg_is_pnode_dirty(9)dbg_is_ltab_dirty(9)dbg_is_lsave_dirty(9)dbg_is_node_dirty(9)dbg_check_ltab_lnum(9)dbg_check_ltab(9)dbg_chk_lpt_free_spc(9)dbg_chk_lpt_sz(9)dump_lpt_leb(9)ubifs_dump_lpt_lebs(9)dbg_populate_lsave(9)
like i said. all of them. no gatekeeping here π
and that's the page!! π
this little gem lives under ./fs/ubifs and she's dated October 2026 β so go check her out, mwah, bye bestie π§ββοΈπ
π¦ 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