From 39e0ebd4fc66046bf733a47aaa899a556093ebc6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 18 Apr 2019 08:32:06 -0600 Subject: Rename completion helpers We have io_uring_get_sqe() on the submission side, yet the completion side is named _completion. Rename as follows: io_uring_get_completion() io_uring_peek_cqe() iO_uring_wait_completion() io_uring_wait_cqe() This better tells the user what the _get variant does by calling it _peek instead, and we move to using _cqe() as the postfix instead of _completion. Signed-off-by: Jens Axboe --- test/poll-cancel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/poll-cancel.c') diff --git a/test/poll-cancel.c b/test/poll-cancel.c index c318a61..19efc5f 100644 --- a/test/poll-cancel.c +++ b/test/poll-cancel.c @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) return 1; } - ret = io_uring_wait_completion(&ring, &cqe); + ret = io_uring_wait_cqe(&ring, &cqe); if (ret < 0) { printf("child: get cqe failed\n"); return 1; @@ -101,7 +101,7 @@ int main(int argc, char *argv[]) } io_uring_cqe_seen(&ring, cqe); - ret = io_uring_wait_completion(&ring, &cqe); + ret = io_uring_wait_cqe(&ring, &cqe); if (ret < 0) { printf("parent: get failed\n"); return 1; -- cgit