STRUCT SCAN_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct scan_data β€” the little data bundle that gets handed off to scan callback functions 🫢

okay so this page is from the Kernel API Manual, and it's a struct page, so it's all about a kernel data structure. reading it, bestie β€” it's short, it's sweet, it's giving "supporting cast member that makes the whole plot work" πŸ’…


🌸 SYNOPSIS 🌸

struct scan_data {
    int min_space;
    int pick_free;
    int lnum;
    int exclude_index;
 };

that's the whole thing. four ints. no cap, that's it ✨


πŸŽ€ Members πŸŽ€

  • min_space β€” the smallest number of bytes you want to bother scanning for. like a little filter: below this, don't even look πŸ‘€
  • pick_free β€” a lil yes/no situation: is it OK to scan for, and pick up, empty LEBs? that's the whole question this field answers πŸ’–
  • lnum β€” wherever the scan finds an LEB number, it gets returned right here. it's the output slot 🎁
  • exclude_index β€” again a yes/no vibe: should index LEBs be excluded? set it accordingly πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

this is where it gets iconique β€” the entire UBIFS finder-functions friend group, all living in the kernel file ./fs/ubifs/find.c πŸ‘‘

like, that's a whole group chat right there β€” go read them all if you want the full lore πŸ§šπŸ’œ


ngl, if you're here you're probably writing or reading a scan callback. say hi to min_space for me πŸ’€

that's the page, bestie! 🌈 this one ships out of ./fs/ubifs and it's dated October 2026 β€” mark your calendars, mwah πŸ’‹πŸŽ€β­

πŸ“¦ where this page comes from