ubifs_get_free_space(9)
π ubifs_get_free_space(9)
ok so this is a page from the Kernel API Manual β yes, the kernel has its own manual, she's iconic like that β and today's main character is ubifs_get_free_space. UBIFS bestie, free space bestie, let's go π«Ά
β¨ NAME β¨
ubifs_get_free_space β returns the amount of free space. that's it. that's the whole job. and she does it beautifully π
πΈ SYNOPSIS πΈ
long long ubifs_get_free_space (struct ubifs_info *c );
like, literally one argument. one. we love a low-maintenance function π
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object. that's the whole vibe, she just needs her file-system context and she's set π
β DESCRIPTION β
okay so what this function does: it calculates and returns the amount of free space to report to user-space π not me being obsessed with a function that does exactly what its name says β no cap, she's honest, she's direct, she's giving main character energy.
returns a long long, so she's got room to be generous with her numbers π₯
π SEE ALSO π
the whole budget.c friend group π these all live in the kernel file ./fs/ubifs/budget.c:
shrink_liability(9)run_gc(9)get_liability(9)make_free_space(9)ubifs_calc_min_idx_lebs(9)ubifs_calc_available(9)can_use_rp(9)do_budget_space(9)calc_idx_growth(9)calc_data_growth(9)calc_dd_growth(9)ubifs_budget_space(9)ubifs_release_budget(9)ubifs_convert_page_budget(9)ubifs_release_dirty_inode_budget(9)ubifs_reported_space(9)ubifs_get_free_space_nolock(9)
go read them, they're all in the group chat π«Ά
and yes, ubifs_get_free_space_nolock(9) is literally right there in the list β she's the no-lock sibling, iykyk π
okay that's the page!! π this one's from ./fs/ubifs, dated October 2026 β so like, future-girl era π§β¨ mwah, go check your free space, bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms