From a9f1e0bd5305f5def81e7ac66a41f05c674ff7f3 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 18 May 2021 18:31:29 -0400 Subject: [PATCH] linux::io_uring: add MAX_ENTRIES constant Signed-off-by: Drew DeVault --- io_uring/uring.ha | 3 +++ diff --git a/io_uring/uring.ha b/io_uring/uring.ha index de8601e552e5a29c2bb32e474bb6c1de248d9737..343734cd050d802326a50f20fd6bf805dc1e06b1 100644 --- a/io_uring/uring.ha +++ b/io_uring/uring.ha @@ -8,6 +8,9 @@ export fn strerror(err: error) const str = { return errors::strerror(err); }; +// The maximum value for the first parameter of [[setup]]. +export def MAX_ENTRIES: uint = 4096; + def CQE_BUFFER_SHIFT: uint = 16; def OFF_SQ_RING: u64 = 0; def OFF_CQ_RING: u64 = 0x8000000; -- 2.48.1