scan_for_free_cb(9)
β¨ scan_for_free_cb(9) β¨
okay so bestie, we're diving into the scan_for_free_cb(9) manual page from the Kernel API Manual π
this is a UBIFS callback and it's lowkey iconic, so let's get into it π«Ά
πΈ NAME πΈ
scan_for_free_cb β the free space scan callback, periodt.
π SYNOPSIS π
int scan_for_free_cb (struct ubifs_info *c , const struct ubifs_lprops
*lprops , int in_tree , void *arg );
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object ποΈlpropsβ the LEB properties we're scanning, bestiein_treeβ whether the LEB properties are in main memory or not πargβ info passed to and from the caller of the scan, iykyk
π₯ DESCRIPTION π₯
This function returns a code that tells you what the scan should do next. It's giving "choose your own adventure" ngl:
LPT_SCAN_CONTINUEβ the scan keeps going, no cap πββοΈLPT_SCAN_ADDβ the LEB properties should be added to the tree in main memory π³LPT_SCAN_STOPβ the scan stops, that's a wrap π
π SEE ALSO π
Kernel file ./fs/ubifs/find.c β plus these absolute legends:
struct scan_data(9)valuable(9)scan_for_dirty_cb(9)scan_for_dirty(9)ubifs_find_dirty_leb(9)do_find_free_space(9)ubifs_find_free_space(9)scan_for_idx_cb(9)scan_for_leb_for_idx(9)ubifs_find_free_leb_for_idx(9)ubifs_save_dirty_idx_lnums(9)scan_dirty_idx_cb(9)find_dirty_idx_leb(9)get_idx_gc_leb(9)find_dirtiest_idx_leb(9)ubifs_find_dirty_idx_leb(9)
π that's the whole page, bestie β go forth and scan for free space π
this one lives in ./fs/ubifs, straight from October 2026, 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