zpa2326_pol...t_completion(9)
π zpa2326_poll_oneshot_completion β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual entry for zpa2326_poll_oneshot_completion, and honestly? this one is a little gremlin of a function and i love her for it π«Ά
πΈ NAME πΈ
zpa2326_poll_oneshot_completion β the "actively poll for one shot data ready" girlie π
like, she doesn't wait for a knock on the door. she keeps checking. iconic, slightly unhinged, deeply necessary.
β¨ SYNOPSIS β¨
int zpa2326_poll_oneshot_completion (const struct iio_dev *indio_dev );
that's the whole vibe. one arg, returns an int. clean. no cap.
π ARGUMENTS π
indio_devβ the IIO device that's all tangled up with the sampling hardware π it's the<italic>const struct iio_dev *</italic>up there in the synopsis, and she's the main character of this whole operation.
π¦ DESCRIPTION π¦
so here's the tea β β this function literally loops over registers content to detect the end of the sampling cycle. she's out here reading the registers over and over, checking, checking, checking, like a bestie refreshing the group chat waiting for someone to reply π
and the reason she exists? it's the fallback. this is the move you pull when DT declared no valid interrupt lines β i.e. no one set up an interrupt to politely tap her on the shoulder, so she just goes and looks herself. self-sufficient queen energy π
iykyk: no interrupt? no problem. she polls.
π₯ RETURN π₯
Zerowhen it all goes right β slay β¨- a negative error code otherwise β not slay π
π SEE ALSO π
the whole friend group, fr fr β you're gonna wanna know all of them:
- 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_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)
π«Ά reminder bestie: if there IS a valid interrupt line declared in DT, you probably don't need to be here manually polling. this one's the backup plan, not the first choice. periodt.
and that's the page! π sourced from ./drivers/iio/pressure, dated October 2026, and honestly? she ate. bye bestie, go read those registers π§ββοΈβ
π¦ 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