Switch to IORING_OP_POLL_ADD/REMOVE

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-01-18 06:10:40 -07:00
parent 213d6f39ef
commit 3640699bea
4 changed files with 11 additions and 11 deletions

View File

@@ -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);