scan_for_dirty_cb(9)
okay so bestie, welcome to the group chat for scan_for_dirty_cb(9) from the Kernel API Manual β itβs literally the dirty space scan callback, and itβs giving βcallback that hands back scan instructionsβ energy. π«Άβ¨
β¨ NAME β¨
scan_for_dirty_cb β dirty space scan callback. Thatβs the name, no cap. π
π¦ SYNOPSIS π¦
Hereβs the signature, bestie β keep it exact, character for character:
int scan_for_dirty_cb (struct ubifs_info *c , const struct ubifs_lprops
*lprops , int in_tree , void *arg );
πΈ ARGUMENTS πΈ
These are the four cuties this callback takes in:
cβ the UBIFS file-system description object. πlpropsβ the LEB properties to scan. β¨in_treeβ whether the LEB properties are in main memory. πargβ information passed to and from the caller of the scan. π¦
π₯ DESCRIPTION π₯
This function returns a code, and that code says whether the scan should keep going (LPT_SCAN_CONTINUE), whether those LEB properties should get added to the tree in main memory (LPT_SCAN_ADD), or whether the scan should stop (LPT_SCAN_STOP). Three outcomes, zero mystery, periodt. π
π SEE ALSO π
The Kernel file ./fs/ubifs/find.c is in the chat, plus all these (9) besties:
struct scan_data(9)valuable(9)scan_for_dirty(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)
π§β¨ cute little sign-off: this page comes from ./fs/ubifs, dated October 2026, and itβs all for scan_for_dirty_cb(9). 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