Home
last modified time | relevance | path

Searched refs:poll_refs (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/io_uring/
Dpoll.c77 v = atomic_fetch_or(IO_POLL_RETRY_FLAG, &req->poll_refs); in io_poll_get_ownership_slowpath()
80 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership_slowpath()
91 if (unlikely(atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS)) in io_poll_get_ownership()
93 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership()
98 atomic_or(IO_POLL_CANCEL_FLAG, &req->poll_refs); in io_poll_mark_cancelled()
248 v = atomic_read(&req->poll_refs); in io_poll_check_events()
269 atomic_andnot(IO_POLL_RETRY_FLAG, &req->poll_refs); in io_poll_check_events()
311 } while (atomic_sub_return(v & IO_POLL_REF_MASK, &req->poll_refs) & in io_poll_check_events()
579 atomic_set(&req->poll_refs, (int)ipt->owning); in __io_arm_poll_handler()
626 if (atomic_cmpxchg(&req->poll_refs, 1, 0) != 1) in __io_arm_poll_handler()
/Linux-v6.1/include/linux/
Dio_uring_types.h554 atomic_t poll_refs; member