summaryrefslogtreecommitdiff
path: root/test/io_uring_enter.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-18 08:32:06 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-18 08:38:08 -0600
commit39e0ebd4fc66046bf733a47aaa899a556093ebc6 (patch)
treec5f82c6cd37137063b4e46eeab486fa3b56d7ba7 /test/io_uring_enter.c
parent4916320ec374cc5d2b4062c48d2e4c576472b739 (diff)
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 <axboe@kernel.dk>
Diffstat (limited to 'test/io_uring_enter.c')
-rw-r--r--test/io_uring_enter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/io_uring_enter.c b/test/io_uring_enter.c
index 51ab8bb..d6e407e 100644
--- a/test/io_uring_enter.c
+++ b/test/io_uring_enter.c
@@ -146,9 +146,9 @@ reap_events(struct io_uring *ring, unsigned nr)
printf("Reaping %u I/Os\n", nr);
gettimeofday(&start, NULL);
while (left) {
- ret = io_uring_wait_completion(ring, &cqe);
+ ret = io_uring_wait_cqe(ring, &cqe);
if (ret < 0) {
- printf("io_uring_wait_completion returned %d\n", ret);
+ printf("io_uring_wait_cqe returned %d\n", ret);
printf("expected success\n");
exit(1);
}