ubifs_calc_available(9)
π ubifs_calc_available(9) β like, the whole kernel API manual thing β¨
okay bestie, so this is a page from the Kernel API Manual, and it's all about ubifs_calc_available(9) β yes that (9) is part of the name, it's giving section-nine realness π
πΈ NAME πΈ
ubifs_calc_available β literally calculates the available FS space. that's it, that's the whole job π
π¦ SYNOPSIS π¦
long long ubifs_calc_available (const struct ubifs_info *c , int
min_idx_lebs );
look at that signature, it's iconic, it returns a long long and everything π
β¨ ARGUMENTS β¨
cβ the UBIFS file-system description object π«Ά like, the whole fs vibe in one struct bestiemin_idx_lebsβ the minimum number of LEBs reserved for the index. lowkey important, don't skip it π
π₯ DESCRIPTION π₯
so this function calculates and returns the amount of FS space that's available for use. no cap, that's the entire lore. it does the math, it hands you back a number, you say thank you and move on π
π SEE ALSO π
Kernel file ./fs/ubifs/budget.c β and omg the friend group is large, every single one of these is linked:
shrink_liability(9), run_gc(9), get_liability(9), make_free_space(9), ubifs_calc_min_idx_lebs(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), ubifs_get_free_space(9)
like, the way budget.c is literally the main character of this whole friend group ππ₯
and that's the whole page bestie, go forth and budget your space π
sign-off corner π β brought to you by./fs/ubifs, dated October 2026, and yes the footer saysubifs_calc_available(9)again because it's that girl β¨π
π¦ 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