zpa2326_pol...t_completion(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

  • Zero when 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:


🫢 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