mul_frac(9)
π mul_frac(9) β Kernel API Manual, bestie edition π
okay so welcome to the Kernel API Manual, where todayβs main character is mul_frac(9). she multiplies fixed-point numbers. thatβs the whole vibe. π
πΈ NAME πΈ
mul_frac β multiply two fixed-point numbers. literally her whole job. π
β¨ SYNOPSIS β¨
s64 mul_frac (s64 x , s64 y );
that signature is exactly what it is, bestie. no cap. π«Ά
π ARGUMENTS π
xβ the first multiplicand. the first number in the cute little multiplication situation. πyβ the second multiplicand. the other number, also here to multiply. β¨
π RETURN π
she returns the result of multiplying two fixed-point numbers. and the result is also a fixed-point number. periodt. π₯
π¦ SEE ALSO π¦
Kernel file: ./drivers/thermal/gov_power_allocator.c. the whole see-also friend group is here, and they are iconic:
div_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)
π cute little sign-off: this pageβs source/version energy is ./drivers/thermal, dated October 2026, and it is literally the mul_frac(9) manual page. 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