do_find_free_space(9)
okay so this is do_find_free_space(9) from the Kernel API Manual, and it's literally about finding a data LEB with free space. bestie, let's get into it π
β¨ NAME β¨
do_find_free_space β find a data LEB with free space. iconic behavior, no cap π
π¦ SYNOPSIS π¦
const struct ubifs_lprops * do_find_free_space (struct ubifs_info *c ,
int min_space , int pick_free , int squeeze );
πΈ ARGUMENTS πΈ
cβ the UBIFS file-system description object π«Άmin_spaceβ minimum amount of free space required, like the bare minimum bestie β¨pick_freeβ whether it is OK to scan for empty LEBs πsqueezeβ whether to try to find space in a non-empty LEB first π§
π DESCRIPTION π
This function returns a pointer to the LEB properties found or a negative error code. that's the whole vibe check: pointer if it found something, negative error code if it didn't π
π SEE ALSO π
Kernel file ./fs/ubifs/find.c β and all these little icons:
struct scan_data(9)valuable(9)scan_for_dirty_cb(9)scan_for_dirty(9)ubifs_find_dirty_leb(9)scan_for_free_cb(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)
π source/version: ./fs/ubifs β date: October 2026 β page: do_find_free_space(9). slay, that's the whole footer, periodt πβ¨
π¦ 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