msa311_get_odr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ msa311_get_odr πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for msa311_get_odr β€” yes, it's giving tiny-but-iconic kernel function, and we're gonna read it together πŸ’….


πŸ’– NAME πŸ’–

msa311_get_odr β€” Read Output Data Rate (ODR) value from MSA311 accel. Like, that's literally the whole vibe ✨.


✨ SYNOPSIS ✨

int msa311_get_odr (struct msa311_priv *msa311 , unsigned int *odr );

No cap, copy that signature exactly 🫢.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • msa311 β€” MSA311 internal private state. It's the little state bundle, bestie πŸŽ€.
  • odr β€” output ODR value. This is where the ODR value comes out, iconic behavior πŸ‘‘.

🌸 DESCRIPTION 🌸

This function should be called under msa311->lock. That's the rule, okay? Lock first, function after β€” main character energy only when the lock is held πŸ”₯.


πŸ“ RETURN πŸ“

  • 0 on success β€” slay βœ…
  • -ERRNO in other failures β€” not slay, but at least you know 😭

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ from ./drivers/iio/accel, October 2026 β€” go forth and read that ODR, bestie 🌈.

πŸ“¦ where this page comes from