From 3640699bea043bed436c3af9ddc5b26fe23ced7a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 18 Jan 2019 06:10:40 -0700 Subject: Switch to IORING_OP_POLL_ADD/REMOVE Signed-off-by: Jens Axboe --- test/poll-cancel.c | 4 ++-- test/poll.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/poll-cancel.c b/test/poll-cancel.c index ce82c60..3c62f18 100644 --- a/test/poll-cancel.c +++ b/test/poll-cancel.c @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) return 1; } - io_uring_prep_poll(sqe, pipe1[0], POLLIN); + io_uring_prep_poll_add(sqe, pipe1[0], POLLIN); io_uring_sqe_set_data(sqe, sqe); addr = sqe; @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) return 1; } - io_uring_prep_poll_cancel(sqe, addr); + io_uring_prep_poll_remove(sqe, addr); io_uring_sqe_set_data(sqe, sqe); ret = io_uring_submit(&ring); diff --git a/test/poll.c b/test/poll.c index 79788f4..c3800d6 100644 --- a/test/poll.c +++ b/test/poll.c @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) return 1; } - io_uring_prep_poll(sqe, pipe1[0], POLLIN); + io_uring_prep_poll_add(sqe, pipe1[0], POLLIN); ret = io_uring_submit(&cring); if (ret <= 0) { @@ -91,7 +91,7 @@ int main(int argc, char *argv[]) return 1; } - io_uring_prep_poll(sqe, pipe2[0], POLLIN); + io_uring_prep_poll_add(sqe, pipe2[0], POLLIN); io_uring_sqe_set_data(sqe, sqe); ret = io_uring_submit(&pring); -- cgit