kmx61_set_power_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, privately
  • on β€” the power state that's getting set for the device, a bool, so it's giving on/off energy
  • device β€” 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 🌈


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