mul_frac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


πŸ’Œ 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