ocores_poll_wait(9)
π ocores_poll_wait(9)
okay so bestie, welcome to the Kernel API Manual β section 9, kernel space, no cap. this one's a lil function called ocores_poll_wait and honestly? it does exactly what it says on the tin. π
β¨ NAME β¨
ocores_poll_wait β wait until it's possible to process some data π«Ά
like literally, it just waits. patiently. main character energy of "i'll get to it when there's something to get to."
πΈ SYNOPSIS πΈ
int ocores_poll_wait(struct ocores_i2c *i2c);
π¦ ARGUMENTS π¦
i2cβ the ocores I2C device instance π that's the thing you're passing in, the whole device vibe, no substitutions iykyk
π DESCRIPTION π
this one's the polling-mode bestie. you use ocores_poll_wait when the device is in polling mode β as in, interrupts are disabled π so nobody's tapping you on the shoulder, you just gotta keep checking yourself. lowkey humbling but it works.
β RETURN β
0β success, we slayed β¨-ETIMEDOUTβ timeout π waited too long, it's giving nothing, it's giving no data
π SEE ALSO π
- Kernel file
./drivers/i2c/busses/i2c-ocores.c ocores_process_timeout(9)ocores_wait(9)ocores_process_polling(9)
fr fr go read the source file if you want the deep lore β that's where the real plot is π
signing off from ./drivers/i2c/busses β October 2026 bestie, that's the source, the version, and the date all in one cute lil bow π periodt.
π¦ 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