do_find_free_space(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is do_find_free_space(9) from the Kernel API Manual, and it's literally about finding a data LEB with free space. bestie, let's get into it πŸ’…

✨ NAME ✨

do_find_free_space β€” find a data LEB with free space. iconic behavior, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

const struct ubifs_lprops * do_find_free_space (struct ubifs_info *c ,
int min_space , int pick_free , int squeeze );

🌸 ARGUMENTS 🌸

  • c β€” the UBIFS file-system description object 🫢
  • min_space β€” minimum amount of free space required, like the bare minimum bestie ✨
  • pick_free β€” whether it is OK to scan for empty LEBs πŸ‘€
  • squeeze β€” whether to try to find space in a non-empty LEB first 🧚

πŸ’– DESCRIPTION πŸ’–

This function returns a pointer to the LEB properties found or a negative error code. that's the whole vibe check: pointer if it found something, negative error code if it didn't 😭


🌈 SEE ALSO 🌈

Kernel file ./fs/ubifs/find.c β€” and all these little icons:


πŸ’– source/version: ./fs/ubifs β€” date: October 2026 β€” page: do_find_free_space(9). slay, that's the whole footer, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from