ocores_process_polling(9)
π 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 β
0on success π-ETIMEDOUTon 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
- 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