IIO_M_S_2_TO_G(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… IIO_M_S_2_TO_G πŸ’…

okay so bestie, welcome to the Kernel API Manual page for IIO_M_S_2_TO_G β€” yes that's a whole mouthful, but it's literally the little macro that keeps your accelerometer from lying to you 🫢


✨ NAME ✨

IIO_M_S_2_TO_G β€” the glow-up machine that converts meter / secondΒ² into g πŸ’«


🌸 SYNOPSIS 🌸

IIO_M_S_2_TO_G (ms2 );

that's it. one argument. one macro. no drama, no cap πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • ms2 β€” a value in meter / secondΒ², aka the units your physics teacher was obsessed with 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: it returns the value you gave it, converted from meter / secondΒ² to g.

That's the whole vibe. In goes an acceleration in m/sΒ², out comes the same acceleration in g. slay πŸ’… no side effects, no surprises, it's giving "small but iconic" πŸ”₯


🌈 SEE ALSO 🌈

the whole IIO friend group came to the function, and honestly? we love a supportive community πŸ’– they all live around the Kernel file ./include/linux/iio/iio.h:

also peep IIO_G_TO_M_S_2(9) at the bottom of that list β€” that's literally this macro's ride-or-die in the other direction, and we stan a bidirectional bestie duo πŸ˜­πŸ’œ

anyway bestie, that's the whole page πŸ’… this little legend ships from ./include/linux/iio, stamped October 2026 β€” go forth and measure your g's with main character energy πŸŽ€β­

πŸ“¦ where this page comes from