ubifs_ensure_cat(9)
π ubifs_ensure_cat β a Kernel API Manual moment
ok so bestie, welcome to the ubifs_ensure_cat(9) page, live from the Kernel API Manual β¨ this one's a little one-function baddie and honestly? she's doing a very specific job and she's slaying it.
πΈ NAME πΈ
ubifs_ensure_cat β ensure LEB properties are categorized.
like, that's literally her whole personality. no cap.
π¦ SYNOPSIS π¦
void ubifs_ensure_cat (struct ubifs_info *c , struct ubifs_lprops
*lprops );
void return, so she doesn't even give you anything back β she just does the thing and dips. main character energy fr π
π ARGUMENTS π
cβ the UBIFS file-system description object. iconic. she's the file system herself.lpropsβ LEB properties. the little guy we're checking on π₯Ί
β¨ DESCRIPTION β¨
okay so picture this: a LEB may have fallen off of the bottom of a heap π and ended up as un-categorized even though it has enough space for us now. rude, honestly. the vibes were off.
if that is the case, this function will put the LEB back onto a heap. that's it. that's the whole plot. she rescues the LEB from its un-categorized era and returns it to its rightful heap. no cap, no drama, just vibes restoration π«Ά
lowkey love that for the LEB. a come-up arc. we stan π
π SEE ALSO π
kernel file ./fs/ubifs/lprops.c, plus the whole friend group:
get_heap_comp_val(9)move_up_lpt_heap(9)adjust_lpt_heap(9)add_to_lpt_heap(9)remove_from_lpt_heap(9)lpt_heap_replace(9)ubifs_add_to_cat(9)ubifs_remove_from_cat(9)ubifs_replace_cat(9)ubifs_categorize_lprops(9)change_category(9)ubifs_calc_dark(9)is_lprops_dirty(9)ubifs_change_lp(9)ubifs_get_lp_stats(9)ubifs_change_one_lp(9)ubifs_update_one_lp(9)ubifs_read_one_lp(9)ubifs_fast_find_free(9)ubifs_fast_find_empty(9)ubifs_fast_find_freeable(9)ubifs_fast_find_frdi_idx(9)dbg_check_cats(9)scan_check_cb(9)dbg_check_lprops(9)
ok that's the page!! π this cutie lives in ./fs/ubifs, and the version/date energy on this one is October 2026 β yes, from the future, we love a forward-thinking queen π 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