dbg_check_cats(9)
π dbg_check_cats(9)
okay so bestie, welcome to the Kernel API Manual β this one's from the <./fs/ubifs> girlies and it's literally called dbg_check_cats. yes it's about categories. no it's not about your cat. let's go β¨
πΈ NAME
dbg_check_cats β check category heaps and lists.
like, the whole vibe of this function is: look at the heaps, look at the lists, make sure nobody's lying. a little audit. a vibe check for data structures, if you will. π
π SYNOPSIS
int dbg_check_cats (struct ubifs_info *c );
that's it. that's the whole call. she takes one argument and returns an int. minimal queen energy. π
π¦ ARGUMENTS
cβ UBIFS file-system description object. this is the context babe, the whole entire filesystemβs situation, passed in so the function knows what to check. don't forget her, she's load-bearing. π«Ά
β¨ DESCRIPTION
This function returns 0 on success and a negative error code on failure.
and that's genuinely the whole description, no cap. 0 = we ate, everything's fine. negative number = something is Not It and you should probably care. π
π₯ SEE ALSO
everything in the ubifs lprops cinematic universe, from <Kernel file ./fs/ubifs/lprops.c>:
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_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)scan_check_cb(9)dbg_check_lprops(9)
that's a whole friend group. iykyk. π
real talk: this is a debug checker, so it's doing checking, not fixing. if she hands you a negative error code, that's your cue to go look at the actual problem. π
signed, sealed, delivered π β the source is <./fs/ubifs>, the date on this masterpiece is October 2026, and the page is dbg_check_cats(9) forever and always. mwah. π
π¦ 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