fixp_linear_interpolate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fixp_linear_interpolate(9) β€” like, the Kernel API Manual page, bestie πŸ’–

okay so first things first: we're in the Kernel API Manual section (9), and the star of the show is fixp_linear_interpolate. she interpolates. she's linear. she's everything. πŸŽ€


✨ NAME ✨

fixp_linear_interpolate β€” interpolates a value from two known points πŸ¦‹

like literally, you give her two points and an x, and she finds the y. math girlie behavior. no cap.


✨ SYNOPSIS ✨

int fixp_linear_interpolate (int x0 , int y0 , int x1 , int y1 , int x );

five ints in, one int out. that's the whole vibe check. πŸ’…


✨ ARGUMENTS ✨

okay so here's the cast of characters, and yes every single one matters πŸ™ˆ

  • x0 β€” x value of point 0 ✨
  • y0 β€” y value of point 0 πŸŽ€
  • x1 β€” x value of point 1 🌸
  • y1 β€” y value of point 1 πŸ¦‹
  • x β€” the linear interpolant πŸ‘‘ (this is the one you're actually asking about, she's the main character)
fr fr, don't mix up your x's and y's β€” points 0 and 1 are the two known points you're interpolating between, and x is the spot you want a value for. 🫢

✨ SEE ALSO ✨

go check out the kernel file ./include/linux/fixp-arith.h β€” that's where the magic lives πŸ“βœ¨

and while you're there, the whole friend group:

iykyk πŸ’œ


that's the page!! sending you off with the official sign-off: this one's from ./include/linux and it's dated October 2026 β€” so yeah, she's from the future, iconic behavior honestly πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from