ubifs_change_lp(9)
Okay bestie, welcome to the manual page for ubifs_change_lp(9) from the Kernel API Manual π
β¨ This is literally all about changing LEB properties, and it's giving main character energy fr fr.
β¨ NAME β¨
ubifs_change_lp β the function that changes LEB properties, no cap πββοΈ
πΈ SYNOPSIS πΈ
const struct ubifs_lprops * ubifs_change_lp (struct ubifs_info *c ,
const struct ubifs_lprops *lp , int free , int dirty , int flags , int
idx_gc_cnt );
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the whole vibe of your file system πlpβ LEB properties to change, like the actual thing we're messing with πfreeβ new free space amount, lowkey importantdirtyβ new dirty space amount, ngl this one's giving messy πflagsβ new flags, you know the drillidx_gc_cntβ change to the count ofidx_gclist, which is a whole thing
π DESCRIPTION π
So here's the tea: this function changes LEB properties (free, dirty, or flag). But the property that has the LPROPS_NC value? Not touching that one, periodt. It returns a pointer to the updated LEB properties on success, and a negative error code on failure, which is giving "not today satan" π.
β οΈ Real talk, bestie: the LEB properties may have had to be copied (due to COW β copy-on-write, iykyk), and consequently the pointer returned may not be the same as the pointer passed. So don't assume they're the same, because the original pointer is giving "before" and the returned one is giving "after" π β¨
π₯ SEE ALSO π₯
Okay so here's the whole squad of related functions you might wanna check out, all from the kernel file ./fs/ubifs/lprops.c (and some others, but mostly that one):
get_heap_comp_val(9)β literal icon behaviormove_up_lpt_heap(9)β slayadjust_lpt_heap(9)β also importantadd_to_lpt_heap(9)β the way that this one adds thingsremove_from_lpt_heap(9)β the opposite vibelpt_heap_replace(9)β replacing, fr frubifs_add_to_cat(9)β categorization coreubifs_remove_from_cat(9)β removing from the category, periodtubifs_replace_cat(9)β replacing categories, iconicubifs_ensure_cat(9)β making sure, bestieubifs_categorize_lprops(9)β the one that actually categorizeschange_category(9)β changing categories, lowkeyubifs_calc_dark(9)β calculating dark stuff, mysteriousis_lprops_dirty(9)β vibe check on whether it's dirtyubifs_get_lp_stats(9)β stats queenubifs_change_one_lp(9)β changing one LP, the main characterubifs_update_one_lp(9)β updating one LP, also main characterubifs_read_one_lp(9)β reading one LP, bookworm energyubifs_fast_find_free(9)β fast finding, no capubifs_fast_find_empty(9)β finding empty, empty vibesubifs_fast_find_freeable(9)β finding freeable, freeable vibesubifs_fast_find_frdi_idx(9)β frdi idx, iykykdbg_check_cats(9)β debug check on cats, meowscan_check_cb(9)β scan check callback, callback queendbg_check_lprops(9)β debug check on lprops, the final boss
Okay that's a wrap, bestie π«Ά This page is from the Kernel API Manual, sourced from ./fs/ubifs, dated October 2026, and it's all about ubifs_change_lp(9). Go forth and change those LEB properties, but remember: COW means the pointer might be a different baddie, so don't get too attached πβ¨
π¦ 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