readx_poll_timeout_atomic(9)
β¨ readx_poll_timeout_atomic(9) β¨
okay bestie, welcome to the Kernel API Manual π
this one's a little polling macro and honestly she's lowkey iconic β readx_poll_timeout_atomic keeps poking an address until the vibe check passes or she runs out of time π
πΈ NAME πΈ
readx_poll_timeout_atomic β periodically poll an address until a condition is met or a timeout occurs π¦
β SYNOPSIS β
readx_poll_timeout_atomic (op , addr , val , cond , delay_us ,
timeout_us );
π ARGUMENTS π
opβ the accessor function π«Ά (she takesaddras her only argument, main character energy fr)addrβ the address you're polling πvalβ the variable you read the value into πcondβ the break condition, i.e. the thing that makes her stop (usually involvesval, iykyk) β¨delay_usβ how long toudelaybetween reads, in us β and yes,0means tight-loops π please go read theudelayfunction description for the details and limitations, no cap, it matterstimeout_usβ timeout in us, and0means she never times out π
π¦ DESCRIPTION π¦
so when it's available, you'll probably want to use one of the specialized macros defined below instead of reaching for this macro directly π like, she works, but the specialized ones are the moment.
π RETURN π
0 on success, and -ETIMEDOUT when she times out β° either way, the last value read at addr gets stored in val π
π SEE ALSO π
- Kernel file
./include/linux/iopoll.hπ poll_timeout_us(9)poll_timeout_us_atomic(9)read_poll_timeout(9)read_poll_timeout_atomic(9)readx_poll_timeout(9)
ngl bestie, don't sleep on the SEE ALSO β the whole friend group is right there and they're all serving π₯
k that's the whole page, mwah π she lives in ./include/linux and this cutie is dated October 2026 β go poll something, 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