div_frac(9)
π 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:
mul_frac(9)struct power_actor(9)struct power_allocator_params(9)estimate_sustainable_power(9)estimate_pid_constants(9)get_sustainable_power(9)pid_controller(9)power_actor_set_power(9)divvy_up_power(9)get_governor_trips(9)check_power_actors(9)power_allocator_bind(9)
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
- 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