summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGlauber Costa <glauber@scylladb.com>2020-01-31 10:37:44 -0500
committerJens Axboe <axboe@kernel.dk>2020-01-31 08:40:13 -0700
commit85679339e38a8dad5264d13a91cd787881214510 (patch)
treef834eb32798bf08bb9bc777c8178bd9af9cbded2 /test
parent352a7b7085f7e1450c432c53a56ea5c1d2e28ec1 (diff)
downloadliburing-85679339e38a8dad5264d13a91cd787881214510.tar.gz
liburing-85679339e38a8dad5264d13a91cd787881214510.tar.bz2
add another helper for probing existing opcodes
There are situations where one does not have a ring initialized yet, and yet they may want to know which opcodes are supported before doing so. We have recently introduced io_uring_get_probe(io_uring*) to do a similar task when the ring already exists. Because this was committed recently and this hasn't seen a release, I thought I would just go ahead and change that to io_uring_get_probe_ring(io_uring*), because I suck at finding another meaningful name for this case (io_uring_get_probe_noring sounded way too ugly to me) A minimal ring is initialized and torn down inside the function. Signed-off-by: Glauber Costa <glauber@scylladb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/probe.c b/test/probe.c
index 34f2028..b85b089 100644
--- a/test/probe.c
+++ b/test/probe.c
@@ -45,7 +45,7 @@ static int test_probe_helper(struct io_uring *ring)
{
struct io_uring_probe *p;
- p = io_uring_get_probe(ring);
+ p = io_uring_get_probe_ring(ring);
if (!p) {
fprintf(stderr, "Failed getting probe data\n");
return 1;