amdgpu_pll_reduce_ratio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_pll_reduce_ratio(9) β€” like, the Kernel API Manual page your bestie actually needed

okay so bestie, gather round πŸŽ€ this one lives in the Kernel API Manual and it's a tiny little helper that does one specific glow-up job on fractions and then dips. no drama, no cap. let's get into it ✨


✨ NAME ✨

amdgpu_pll_reduce_ratio β€” fractional number reduction 🧚

like, it takes a fraction and makes it snatched. that's the whole vibe.


🌸 SYNOPSIS 🌸

void amdgpu_pll_reduce_ratio (unsigned *nom , unsigned *den , unsigned
nom_min , unsigned den_min );

that's it. that's the signature. she's short and she knows it πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nom β€” the nominator 🫢 (yes, the manpage says "nominator", we're keeping it exactly like that, i don't make the rules)
  • den β€” the denominator, her partner in crime
  • nom_min β€” the minimum value the nominator is allowed to be, no going below bestie 🚫
  • den_min β€” the minimum value the denominator is allowed to be, same energy, same floor

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's what's happening under the hood, and it's honestly kind of iconic:

it finds the greatest common divisor and applies it to both the nominator and the denominator β€” like matching outfits, but math 🌈 β€” but it makes sure the nominator and denominator are at least as large as their minimum values.

so: reduce the ratio, yes, slay, but never let nom drop below nom_min and never let den drop below den_min. the floor is the floor, periodt πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group fr fr 🫢 go read them too, they're all in their lane and thriving.


πŸ’– reminder: every value here matters β€” nom, den, nom_min, den_min, all four, no skipping. the GCD does the work, the minimums keep it honest. iykyk ✨

kisses, this page came to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” and the doc girlies said "make it cute," so here we are πŸŽ€πŸ’œ bye bestie, go reduce some ratios responsibly ⭐

πŸ“¦ where this page comes from