div_frac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

div_frac β€” divide two fixed-point numbers. That's the whole vibe, bestie. This page is serving straight from the Kernel API Manual, and it's lowkey iconic.


✨ SYNOPSIS ✨

s64 div_frac (s64 x , s64 y );

πŸ’– ARGUMENTS πŸ’–

  • x β€” the dividend. That's the number getting divided, periodt.
  • y β€” the divisor. That's the number doing the dividing, no cap.

πŸ¦‹ RETURN πŸ¦‹

It returns the result of dividing two fixed-point numbers. And yes, the result is also a fixed-point number β€” the fixed-point energy stays fixed-point. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/thermal/gov_power_allocator.c, plus the whole squad:

okay that's the whole page 🫢 source/version: ./drivers/thermal; date: October 2026. catch you in div_frac(9) land β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from