diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-04-18 08:32:06 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-18 08:38:08 -0600 |
commit | 39e0ebd4fc66046bf733a47aaa899a556093ebc6 (patch) | |
tree | c5f82c6cd37137063b4e46eeab486fa3b56d7ba7 /test/nop.c | |
parent | 4916320ec374cc5d2b4062c48d2e4c576472b739 (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/nop.c')
-rw-r--r-- | test/nop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ static int test_single_nop(struct io_uring *ring) goto err; } - ret = io_uring_wait_completion(ring, &cqe); + ret = io_uring_wait_cqe(ring, &cqe); if (ret < 0) { printf("wait completion %d\n", ret); goto err; @@ -71,7 +71,7 @@ static int test_barrier_nop(struct io_uring *ring) } for (i = 0; i < 8; i++) { - ret = io_uring_wait_completion(ring, &cqe); + ret = io_uring_wait_cqe(ring, &cqe); if (ret < 0) { printf("wait completion %d\n", ret); goto err; |