scan_for_dirty(9)
πΎ scan_for_dirty(9) πΎ
okay bestie, this is the Kernel API Manual entry for scan_for_dirty(9), and itβs giving βwe search the UBIFS streets for a data LEB with room to breathe.β β¨ No cap, letβs get into it.
πΈ NAME πΈ
scan_for_dirty β find a data LEB with free space.
β¨ SYNOPSIS β¨
const struct ubifs_lprops * scan_for_dirty (struct ubifs_info *c , int
min_space , int pick_free , int exclude_index );
π ARGUMENTS π
cβ the UBIFS file-system description object. Main character struct energy, honestly. πmin_spaceβ the minimum amount of free plus dirty space the returned LEB has to have. Like, the bare minimum, bestie.pick_freeβ if it is OK to return a free or freeable LEB. πexclude_indexβ whether to exclude index LEBs. Periodt.
π§ DESCRIPTION π§
This function returns a pointer to the LEB properties found or a negative error code. Thatβs the whole plot β pointer if it found the vibe, negative error code if not. π
Bestie vibe check: itβs literally βpointer to the LEB properties found or a negative error code,β no extra lore. π«Ά
π₯ SEE ALSO π₯
Kernel file ./fs/ubifs/find.c, struct scan_data(9), valuable(9), scan_for_dirty_cb(9), ubifs_find_dirty_leb(9), scan_for_free_cb(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).
source/version: ./fs/ubifs; date: 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