kmx61_set_power_state(9)
π kmx61_set_power_state(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β this is the page for kmx61_set_power_state, and yes we're gonna get into it. grab a boba, we're going in π§β¨
πΈ NAME πΈ
kmx61_set_power_state β the function that sets the power state for the kmx61 @device π
lowkey its whole personality
β SYNOPSIS β
int kmx61_set_power_state (struct kmx61_data *data , bool on , u8 device
);
it hands you back an int, no cap π«Ά
π ARGUMENTS π
dataβ the kmx61 device private pointer π¦ like, the whole vibe of the device, privatelyonβ the power state that's getting set for the device, abool, so it's giving on/off energydeviceβ a bitmask that says which device needs its on state set π bitmask, bestie, so more than one thing can be flagged in there
π₯ DESCRIPTION π₯
okay so pay attention because this is the part that matters, iykyk π
notice: when the ACC power state needs to be set to ON and MAG is in OPERATION, then we already know that kmx61_runtime_resume was called β so we must set ACC OPERATION mode here, right in this function. periodt. π
and the exact same thing happens the other way round: when the MAG power state needs to be set to ON and ACC is in OPERATION, same situation, same little dance π§
so yeah, the two of them are lowkey keeping tabs on each other's operation state and you can't just forget about it π«Άβ¨
π SEE ALSO π
- the kernel file
./drivers/iio/imu/kmx61.cπ kmx61_set_mode(9)β the mode-setting bestiekmx61_read_for_each_active_channel(9)β the reading-every-active-channel bestie
seriously tho, the ACC/MAG OPERATION thing is the entire plot of this page β don't skip it π«‘
and that's the whole page, bestie!! sign-off time: this icon came from ./drivers/iio/imu, dated October 2026 β mwah, slay, go read the source ππβ¨
π¦ 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