This new flag should be set/clear from the application to disable/enable eventfd notifications when a request is completed and queued to the CQ ring. Before this patch, notifications were always sent if an eventfd is registered, so IORING_CQ_EVENTFD_DISABLED is not set during the initialization. It will be up to the application to set the flag after initialization if no notifications are required at the beginning.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -209,6 +209,13 @@ struct io_cqring_offsets { · 208 unmodified lines | |||
| 209 | __u64 resv2; | 209 | __u64 resv2; |
| 210 | }; | 210 | }; |
| 211 | 211 | ||
| 212 | /* | ||
| 213 | * cq_ring->flags | ||
| 214 | */ | ||
| 215 | |||
| 216 | /* disable eventfd notifications */ | ||
| 217 | #define IORING_CQ_EVENTFD_DISABLED (1U << 0) | ||
| 218 | |||
| 212 | /* | 219 | /* |
| 213 | * io_uring_enter(2) flags | 220 | * io_uring_enter(2) flags |
| 214 | */ | 221 | */ |