From 2f652fe534525fc33e1317cb663a1bbac4adeb58 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Wed, 28 Jul 2021 22:03:50 +0300 Subject: [PATCH] linux::io_uring: use error instead of errors::error Signed-off-by: Alexey Yerin --- io_uring/queue.ha | 6 +++--- diff --git a/io_uring/queue.ha b/io_uring/queue.ha index 50ccfc9256c09e2a6f127a4e7dc83becebd73f6b..82f5735ede4284f4dbc2a0ff1c9d015696d525d9 100644 --- a/io_uring/queue.ha +++ b/io_uring/queue.ha @@ -41,7 +41,7 @@ *ring.sq.kflags & sqring_flags::CQ_OVERFLOW == sqring_flags::CQ_OVERFLOW; // Submits queued I/O asynchronously. Returns the number of submissions accepted // by the kernel. -export fn submit(ring: *io_uring) (uint | errors::error) = +export fn submit(ring: *io_uring) (uint | error) = do_submit(ring, flush_sq(ring), 0u); // Submits queued I/O asynchronously and blocks until at least "wait" events are @@ -50,7 +50,7 @@ // the "wait" parameter is different: a non-zero value will block until at least // one event is completed. // // Returns the number of submissions accepted by the kernel. -export fn submit_wait(ring: *io_uring, wait: uint) (uint | errors::error) = +export fn submit_wait(ring: *io_uring, wait: uint) (uint | error) = do_submit(ring, flush_sq(ring), wait); fn flush_sq(ring: *io_uring) uint = { @@ -76,7 +76,7 @@ fn do_submit( ring: *io_uring, submitted: uint, wait: uint, -) (uint | errors::error) = { +) (uint | error) = { let flags: enter_flags = enter_flags::GETEVENTS; if (needs_enter(ring, &flags) || wait != 0) { return match (rt::io_uring_enter(ring.fd, -- 2.48.1