scan_dirty_idx_cb(9)
π scan_dirty_idx_cb(9) β bestie edition π
Okay so real quick before we dive in: this is a page from the Kernel API Manual, and it's all about scan_dirty_idx_cb β a callback that the scan for a dirty index LEB uses. Yes, that's the whole vibe. Let's go β¨
πΈ NAME πΈ
scan_dirty_idx_cb β literally just the callback that the scan for a dirty index LEB uses. That's it, that's the function π«Ά
β¨ SYNOPSIS β¨
int scan_dirty_idx_cb (struct ubifs_info *c , const struct ubifs_lprops
*lprops , int in_tree , void *arg );
She takes four arguments and returns an int. Iconic behavior honestly π
π ARGUMENTS π
cβ the UBIFS file-system description object. The whole fs, in object form πlpropsβ the LEB properties to scan. Like, the actual props being looked at.in_treeβ whether the LEB properties are in main memory. Yes/no energy πargβ information passed to and from the caller of the scan. Note that it goes both ways β it's giving main character bidirectional communication π
π DESCRIPTION π
So what does this function do? It returns a code, and that code tells you which of three things is happening:
- Whether the scan should continue β
LPT_SCAN_CONTINUEβ¨ - Whether the LEB properties should be added to the tree in main memory β
LPT_SCAN_ADDπΈ - Whether the scan should stop β
LPT_SCAN_STOPπ
Three constants, three moods. Pick your fighter. No cap, that's the entire description π
π¦ SEE ALSO π¦
All of these, bestie, in the exact order they appear β I'm not skipping a single one π€
- Kernel file
./fs/ubifs/find.c 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)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)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, you ate that. Now go read find.c and slay π
Sign-off time, bestie π this masterpiece lives at ./fs/ubifs, dated October 2026, and she goes by scan_dirty_idx_cb(9) β remember the name, 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