summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io_uring.h4
-rw-r--r--src/liburing.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/io_uring.h b/src/io_uring.h
index b057733..3b8d623 100644
--- a/src/io_uring.h
+++ b/src/io_uring.h
@@ -54,8 +54,8 @@ struct io_uring_sqe {
#define IORING_OP_FSYNC 3
#define IORING_OP_READ_FIXED 4
#define IORING_OP_WRITE_FIXED 5
-#define IORING_OP_POLL 6
-#define IORING_OP_POLL_CANCEL 7
+#define IORING_OP_POLL_ADD 6
+#define IORING_OP_POLL_REMOVE 7
/*
* sqe->fsync_flags
diff --git a/src/liburing.h b/src/liburing.h
index 8e5e2ee..e287f3d 100644
--- a/src/liburing.h
+++ b/src/liburing.h
@@ -94,20 +94,20 @@ static inline void io_uring_prep_writev(struct io_uring_sqe *sqe, int fd,
sqe->len = nr_vecs;
}
-static inline void io_uring_prep_poll(struct io_uring_sqe *sqe, int fd,
- short poll_mask)
+static inline void io_uring_prep_poll_add(struct io_uring_sqe *sqe, int fd,
+ short poll_mask)
{
memset(sqe, 0, sizeof(*sqe));
- sqe->opcode = IORING_OP_POLL;
+ sqe->opcode = IORING_OP_POLL_ADD;
sqe->fd = fd;
sqe->poll_events = poll_mask;
}
-static inline void io_uring_prep_poll_cancel(struct io_uring_sqe *sqe,
+static inline void io_uring_prep_poll_remove(struct io_uring_sqe *sqe,
void *user_data)
{
memset(sqe, 0, sizeof(*sqe));
- sqe->opcode = IORING_OP_POLL_CANCEL;
+ sqe->opcode = IORING_OP_POLL_REMOVE;
sqe->addr = (unsigned long) user_data;
}