msa311_get_axis(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msa311_get_axis(9) β€” like, the Kernel API Manual page you didn't know you needed πŸŽ€

okay so bestie, welcome to the Kernel API Manual entry for msa311_get_axis(9) β€” this is the little function that goes and grabs you the accel data for one specific IIO channel axis spec. she's small, she's focused, she slays ✨


✨ NAME ✨

msa311_get_axis β€” Read MSA311 accel data for certain IIO channel axis spec 🌸

πŸ¦‹ SYNOPSIS πŸ¦‹

int msa311_get_axis (struct msa311_priv *msa311 , const struct
       iio_chan_spec * const chan , __le16 *axis );

πŸ’– ARGUMENTS πŸ’–

  • msa311 β€” the MSA311 internal private state 🫢 (yes, her whole private little world)
  • chan β€” the IIO channel specification πŸ‘‘
  • axis β€” the output accel axis data for the requested IIO channel spec ⭐

🧚 DESCRIPTION 🧚

This function should be called under msa311->lock. πŸ”’ no cap β€” take the lock first, that's the vibe check.

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay πŸ’…
  • -EINVAL for unknown IIO channel specification β€” like, that channel is not on the list, bestie 😭
  • -ERRNO in other failures β€” other stuff went sideways, it's giving chaos πŸ’€

🌈 SEE ALSO 🌈

go read those too, they're lowkey iconic, iykyk πŸ¦‹


and that's the whole page, periodt πŸ’œ this was served up from ./drivers/iio/accel, dated October 2026, and yeah β€” it's msa311_get_axis(9), main character of this manpage, no notes πŸŽ€

πŸ“¦ where this page comes from