zpa2326_sleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ zpa2326_sleep(9) ✨

ok so this is a page from the Kernel API Manual bestie, and it's literally about putting a pressure sensor to sleep πŸ˜΄πŸ’€ like it's naptime for hardware and we're the ones tucking it in πŸŽ€


🌸 NAME 🌸

zpa2326_sleep β€” Disable device, i.e. switch to low power mode. πŸ’…

(yes that's the whole vibe: we're disabling it, which is a fancy way of saying low power mode, and honestly? iconic.)


πŸ¦‹ SYNOPSIS πŸ¦‹

int zpa2326_sleep (const struct iio_dev *indio_dev );

that's it. one function, one argument, one int coming back at you. no cap, that's the whole signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • indio_dev β€” The IIO device associated with the hardware to disable. like, this is the device handle for the actual physical sensor you're putting to sleep, so don't go passing it some random pointer, bestie 😭

⭐ DESCRIPTION ⭐

Okay so here's the thing that actually matters πŸ‘‘:

Only ZPA2326_DEVICE_ID_REG and ZPA2326_CTRL_REG0_REG registers may be accessed once device is in the disabled state.

read that again, fr fr. once it's disabled, those are the only two registers you get to touch. everything else? off limits. don't try it πŸ™ˆ

no cap, this is the kind of detail that'll bite you if you skip it. two registers. that's the list. periodt. πŸ’€

πŸ”₯ RETURN πŸ”₯

  • Zero when successful βœ…
  • a negative error code otherwise ❌

so check your return value, babe, zero is the slay outcome 🌈


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/iio/pressure/zpa2326.c β€” the source file, go read it, it's giving main character energy πŸ“–βœ¨

and the whole friend group of related pages, all of them, in order:


ok that's the whole page, you ate that πŸ“πŸ’– this came from ./drivers/iio/pressure, dated October 2026, and yes the page is literally called zpa2326_sleep(9) β€” go take a nap yourself, you earned it πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from