msa311_set_pwr_mode(9)
π NAME π
okay so bestie, welcome to msa311_set_pwr_mode(9) from the Kernel API Manual β this one is literally βinstall certain MSA311 power modeβ. slay. β¨
β¨ SYNOPSIS β¨
int msa311_set_pwr_mode (struct msa311_priv *msa311 , unsigned int mode
);
π ARGUMENTS π
msa311β the MSA311 internal private state, aka the main-character struct.modeβ the power mode, and it can be equal toNORMALorSUSPEND. periodt. π
π¦ DESCRIPTION π¦
Call this function while youβre holding msa311->lock β yes, thatβs the vibe check, and you need to pass it. π«Ά
πΈ RETURN πΈ
0 on success, -ERRNO on failure. no cap, thatβs the whole mood. π
π SEE ALSO π
- Kernel file
./drivers/iio/accel/msa311.c struct msa311_priv(9)msa311_get_odr(9)msa311_set_odr(9)msa311_wait_for_next_data(9)msa311_get_axis(9)
this page is brought to you by source/version ./drivers/iio/accel, dated October 2026, and itβs literally the msa311_set_pwr_mode(9) manual page. mwah π
π¦ 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