avivo_reduce_ratio(9)
π avivo_reduce_ratio π
okay so this is avivo_reduce_ratio(9) from the Kernel API Manual, and honestly? she's a little math baddie and we're obsessed π
β¨ NAME β¨
avivo_reduce_ratio β fractional number reduction, aka making your fraction live its best simplified life π
π¦ SYNOPSIS π¦
void avivo_reduce_ratio (unsigned *nom , unsigned *den , unsigned
nom_min , unsigned den_min );
like literally that's the whole vibe. four params, no return, no drama β¨
πΈ ARGUMENTS πΈ
nomβ the nominator π«Ά (yes bestie, nominator, that's what the page says, we do not correct the manpage, we respect the manpage)denβ the denominator, her other half πnom_minβ the minimum value for the nominator, aka the floor she refuses to go below βden_minβ the minimum value for the denominator, same energy, different variable π
π₯ DESCRIPTION π₯
okay so picture this: you have a fraction, right? and it's giving unsimplified. π
So what this does is it finds the greatest common divisor and applies it to both the nominator and the denominator β divide them both, slay, reduce, periodt π β BUT (and this is the main character plot twist) it makes sure the nominator and denominator are at least as large as their minimum values π«Ά
so like. reduce, yes. but never below nom_min and den_min. the minimums are the boundary and she respects the boundary, no cap π₯
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/radeon/radeon_display.cπ radeon_unpin_work_func(9)radeon_crtc_handle_flip(9)radeon_flip_work_func(9)avivo_get_fb_ref_div(9)radeon_compute_pll_avivo(9)
go read those too, iykyk π
and that's the whole page bestie πΈ this one came out of ./drivers/gpu/drm/radeon, dated October 2026, and it's still filed under avivo_reduce_ratio(9) β mwah, iconic, no notes πβ¨π§
π¦ 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