zpa2326_postenable_buffer(9)
β¨ NAME β¨
zpa2326_postenable_buffer β configure the device for triggered sampling, bestie π
β¨ SYNOPSIS β¨
int zpa2326_postenable_buffer (struct iio_dev *indio_dev);
β¨ ARGUMENTS β¨
indio_devβ the IIO device that's linked to the sampling hardware, okay? π«Ά
β¨ DESCRIPTION β¨
Okay so basically, this function sets up one-shot mode when you're plugging in an external trigger. No external trigger? Then it just lets the internal trigger configure continuous sampling β you can peek at zpa2326_set_trigger_state for that whole vibe. β¨
If an error gets returned, the IIO layer will call our postdisable hook for us, so like, no need to explicitly power the device off here. (Slay, honestly.) π
Called with the IIO device's lock held. π
(Called with the IIO device's lock held β yes, that's a thing, don't forget it! π)
β¨ RETURN β¨
Zero when it's all good π, or a negative error code if something's off. π
β¨ SEE ALSO β¨
- Kernel file
./drivers/iio/pressure/zpa2326.c - ZPA2326 theory of operations(9)
struct zpa2326_frequency(9)struct zpa2326_private(9)zpa2326_enable_device(9)zpa2326_sleep(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_set_trigger_state(9)zpa2326_init_managed_trigger(9)
This page is from ./drivers/iio/pressure, October 2026. Bye bestie! πππ¦
π¦ 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