hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b349dadb1c9746791004ca7c7a0dba52aa4faecc
parent 9511626c4b9a89404ae44901d5ddc95ad54b7a45
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 18 May 2021 18:31:29 -0400

linux::io_uring: add MAX_ENTRIES constant

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mlinux/io_uring/uring.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/linux/io_uring/uring.ha b/linux/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;