msa311_get_odr(9)
π 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 π
0on success β slay β-ERRNOin other failures β not slay, but at least you know π
π SEE ALSO π
- Kernel file
./drivers/iio/accel/msa311.c struct msa311_priv(9)msa311_set_odr(9)msa311_wait_for_next_data(9)msa311_set_pwr_mode(9)msa311_get_axis(9)
mwah π from ./drivers/iio/accel, October 2026 β go forth and read that ODR, bestie π.
π¦ 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