6#ifndef CWIST_SYS_IO_URING_SQPOLL_H
7#define CWIST_SYS_IO_URING_SQPOLL_H
14#include <linux/io_uring.h>
23 struct io_uring_sqe *sqes;
24 _Atomic uint32_t *sq_head;
25 _Atomic uint32_t *sq_tail;
26 uint32_t *sq_ring_mask;
45int cwist_io_uring_init_sqpoll(cwist_sqpoll_ring_t *r,
unsigned entries,
46 unsigned sq_thread_idle_ms);
60bool cwist_io_uring_sqpoll_send(cwist_sqpoll_ring_t *r,
int fd,
const void *buf,
size_t len,
68void cwist_io_uring_destroy_sqpoll(cwist_sqpoll_ring_t *r);