scan_for_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ 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