calc_data_growth(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ calc_data_growth β€” a Kernel API Manual moment πŸ’…

okay bestie, buckle up, because this is calc_data_growth(9) from the Kernel API Manual and it's literally here to do one iconic little job: figure out the approximate amount of new data that comes out of a budgeting request. that's it. that's the whole vibe. ✨


🌸 NAME 🌸

calc_data_growth β€” calculate approximate amount of new data from budgeting request.

like, approximate. don't come for her with your exact-math expectations, she said what she said 🫢


πŸ’– SYNOPSIS πŸ’–

int calc_data_growth (const struct ubifs_info *c , const struct ubifs_budget_req *req );

returns an int, takes two pointers, no cap. very demure, very mindful πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object, aka the whole personality of the filesystem, passed in as a const struct ubifs_info *. she's the main character here, respectfully πŸ’…
  • req β€” the budgeting request itself, const struct ubifs_budget_req *. this is the ask, the little "hey can i get some space" note that she's about to do math on 🧚
both are const pointers btw β€” she's looking, not touching. respect the boundaries ✨

πŸ¦‹ SEE ALSO πŸ¦‹

soooo many siblings, honestly a whole friend group. all of these live in the kernel file ./fs/ubifs/budget.c (listed in that exact order too, iykyk):

go read them all, bestie, they're all in the same ./fs/ubifs family 🌈


⭐ this has been your girl from ./fs/ubifs, stamped October 2026, signing off β€” stay budgeting, stay approximate, slay the whole kernel πŸ’œπŸŽ€

πŸ“¦ where this page comes from