ocores_process_polling(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet ocores_process_polling β€” it handles an IRQ-less transfer. this page is from the Kernel API Manual, and yes, the title is ocores_process_polling(9) πŸ’…


✨ SYNOPSIS ✨

int ocores_process_polling (struct ocores_i2c *i2c );

πŸŽ€ ARGUMENTS πŸŽ€

  • i2c β€” your ocores I2C device instance, aka the little device baddie this call is working with 🫢

🌸 DESCRIPTION 🌸

So here's the vibe check: even if IRQ are disabled, the I2C OpenCore IP behavior is exactly the same β€” the only difference is that IRQ are not produced. no cap. That means we can re-use entirely ocores_isr, and we just add our polling code around it. iconic re-use moment, honestly ✨

It can run in atomic context. yes bestie, atomic context β€” keep that in mind πŸ‘‘

⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • -ETIMEDOUT on timeout 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/i2c/busses/i2c-ocores.c, plus these besties:


cute sign-off: this page is serving ./drivers/i2c/busses energy, dated October 2026, and it's still ocores_process_polling(9) in the Kernel API Manual πŸ’œπŸŽ€

πŸ“¦ where this page comes from