wip: io-uring

This commit is contained in:
Daniel Eklöf 2025-05-08 09:23:01 +02:00
parent 9b0d5e7c96
commit ae8394b0c1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 250 additions and 9 deletions

View file

@ -11,6 +11,10 @@
#include <utf8proc.h>
#endif
#if defined(FOOT_IO_URING)
#include <liburing.h>
#endif
#include <tllist.h>
#include <fcft/fcft.h>
@ -428,6 +432,14 @@ struct terminal {
pid_t slave;
int ptmx;
#if defined(FOOT_IO_URING)
struct {
struct io_uring ring;
struct io_uring_buf_ring *buf_ring;
uint8_t **buffers;
} uring;
#endif
struct vt vt;
struct grid *grid;
struct grid normal;