msa311_get_axis(9)
π 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 π₯
0on success β slay π-EINVALfor unknown IIO channel specification β like, that channel is not on the list, bestie π-ERRNOin other failures β other stuff went sideways, it's giving chaos π
π SEE ALSO π
- Kernel file
./drivers/iio/accel/msa311.cstruct msa311_priv(9) msa311_get_odr(9)msa311_set_odr(9)msa311_wait_for_next_data(9)msa311_set_pwr_mode(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms