scan_for_dirty_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


🧚✨ 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