scan_for_free_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ scan_for_free_cb(9) ✨

okay so bestie, we're diving into the scan_for_free_cb(9) manual page from the Kernel API Manual πŸ’… this is a UBIFS callback and it's lowkey iconic, so let's get into it 🫢


🌸 NAME 🌸

scan_for_free_cb β€” the free space scan callback, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

int scan_for_free_cb (struct ubifs_info *c , const struct ubifs_lprops
*lprops , int in_tree , void *arg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” the UBIFS file-system description object πŸ—‚οΈ
  • lprops β€” the LEB properties we're scanning, bestie
  • in_tree β€” whether the LEB properties are in main memory or not πŸ‘€
  • arg β€” info passed to and from the caller of the scan, iykyk

πŸ”₯ DESCRIPTION πŸ”₯

This function returns a code that tells you what the scan should do next. It's giving "choose your own adventure" ngl:

  • LPT_SCAN_CONTINUE β€” the scan keeps going, no cap πŸƒβ€β™€οΈ
  • LPT_SCAN_ADD β€” the LEB properties should be added to the tree in main memory 🌳
  • LPT_SCAN_STOP β€” the scan stops, that's a wrap πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ubifs/find.c β€” plus these absolute legends:


πŸ’– that's the whole page, bestie β€” go forth and scan for free space πŸ’–

this one lives in ./fs/ubifs, straight from October 2026, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from