io_uring: allow events and user_data update of running poll requests
[linux-2.6-microblaze.git] / include / uapi / linux / io_uring.h
index 76c9676..5beaa6b 100644 (file)
@@ -166,8 +166,13 @@ enum {
  * IORING_POLL_ADD_MULTI       Multishot poll. Sets IORING_CQE_F_MORE if
  *                             the poll handler will continue to report
  *                             CQEs on behalf of the same SQE.
+ *
+ * IORING_POLL_UPDATE          Update existing poll request, matching
+ *                             sqe->addr as the old user_data field.
  */
 #define IORING_POLL_ADD_MULTI  (1U << 0)
+#define IORING_POLL_UPDATE_EVENTS      (1U << 1)
+#define IORING_POLL_UPDATE_USER_DATA   (1U << 2)
 
 /*
  * IO completion data structure (Completion Queue Entry)