get_heap_comp_val(9)
β¨ get_heap_comp_val β¨
Okay bestie, welcome to the Kernel API Manual π β this one's a lil baby page from the UBIFS corner of the kernel, but it's lowkey important, so let's get into it π
πΈ NAME πΈ
get_heap_comp_val β it gets the LEB properties value for heap comparisons. That's the whole vibe. No cap. β¨
π¦ SYNOPSIS π¦
int get_heap_comp_val (struct ubifs_lprops *lprops , int cat );
Like, that's the whole signature. She's short and she knows it π
π ARGUMENTS π
lpropsβ the LEB properties. This is the struct she's gonna look at π«Άcatβ the LEB category. Like, which category we're repping rn π
π SEE ALSO π
Okay this is the part where the friend group shows up, because get_heap_comp_val does not roll alone. All of these live in the kernel file ./fs/ubifs/lprops.c:
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_ensure_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)
Like honestly? iconic lineup. iykyk π₯
fr fr read the whole heap crew before you touch anything β they're all doing bits in the same file and they will notice if you skip leg day π
Sign-off szn π§: this little gem comes to you from ./fs/ubifs, dated October 2026 β mwah, go read the source bestie, ily ππ
π¦ 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