class IoUring

Defined at line 124 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

An RAII helper class that manages the lifetime and memory mappings of an io_uring instance.

Public Methods

fit::result<int, std::unique_ptr<IoUring>> Create (uint32_t entries, io_uring_params params)

Returns the instance or the system errno on failure.

Defined at line 26 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.cc

void SubmitSqe (fit::function<void (Sqe *)> fill_request)

Prepares and submits an SQE using the provided callback to populate it.

Defined at line 92 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.cc

void IoUring (const IoUring & )

Defined at line 130 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

IoUring & operator= (const IoUring & )

Defined at line 131 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

void IoUring (IoUring && )

Defined at line 132 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

IoUring & operator= (IoUring && )

Defined at line 133 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

int fd ()

Defined at line 135 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

const io_uring_params & params ()

Defined at line 136 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

io_uring_sqe * sqes ()

Defined at line 138 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

io_uring_cqe * cqes ()

Defined at line 139 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

uint32_t * sq_array ()

Defined at line 140 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

std::atomic<uint32_t> * sq_tail_ptr ()

Defined at line 141 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

std::atomic<uint32_t> * cq_head_ptr ()

Defined at line 142 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h

std::atomic<uint32_t> * cq_tail_ptr ()

Defined at line 143 of file ../../src/starnix/tests/syscalls/cpp/io_uring_helper.h