scan_check_cb(9)
π scan_check_cb(9) β the kernel API manual, bestie edition
okay so this is a page from the Kernel API Manual and honestly? it's a little guy with a big job. meet scan_check_cb, the scan callback π
β¨ SYNOPSIS β¨
int scan_check_cb (struct ubifs_info *c , const struct ubifs_lprops *lp
, int in_tree , void *arg );
like, look at that signature. four args. immaculate. no notes. π«Ά
πΈ ARGUMENTS πΈ
cβ the UBIFS file-system description object. it's giving "the whole entire filesystem, in one struct" energy πlpβ the LEB properties to scan. that's the lil bundle of facts about one LEB that we're peeking at πin_treeβ whether the LEB properties are in main memory. yes/no, are they already chilling in RAM or not πargβ lprops statistics to update. you hand it your stats and it does the updating. teamwork fr fr π
π¦ DESCRIPTION π¦
so what does it do? it returns a code, and that code is basically a vibe check on the scan itself. three possible moods π
LPT_SCAN_CONTINUEβ the scan should keep going, bestie. don't stop now β¨LPT_SCAN_ADDβ these LEB properties should be added to the tree in main memory. come on in, the tree's lovely πLPT_SCAN_STOPβ the scan should stop. that's it, we're done, periodt π
π SEE ALSO π
Kernel file ./fs/ubifs/lprops.c β and like, so many friends. we're not doing a short list here, we're doing the whole group chat:
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)dbg_check_cats(9)dbg_check_lprops(9)
and that's the page!! π mwah. go update your lprops stats, you icon.
sign-off time: this one lives at ./fs/ubifs, dated October 2026, and it goes by scan_check_cb(9) π catch you in the source, 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