zpa2326_sleep(9)
β¨ 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:
ZPA2326 theory of operations(9)struct zpa2326_frequency(9)struct zpa2326_private(9)zpa2326_enable_device(9)zpa2326_reset_device(9)zpa2326_start_oneshot(9)zpa2326_power_on(9)zpa2326_power_off(9)zpa2326_config_oneshot(9)zpa2326_clear_fifo(9)zpa2326_dequeue_pressure(9)zpa2326_fill_sample_buffer(9)zpa2326_resume(9)zpa2326_suspend(9)zpa2326_handle_irq(9)zpa2326_handle_threaded_irq(9)zpa2326_wait_oneshot_completion(9)zpa2326_poll_oneshot_completion(9)zpa2326_fetch_raw_sample(9)zpa2326_sample_oneshot(9)zpa2326_trigger_handler(9)zpa2326_preenable_buffer(9)zpa2326_postenable_buffer(9)zpa2326_set_trigger_state(9)zpa2326_init_managed_trigger(9)
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
- 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