21 size_t len, off_t offset,
int sock_fd,
void *udata);
KlFileIO * kl_file_io_create(KlEventLoop *loop, KlAllocator *alloc)
Create async file I/O backend from the event loop. Returns NULL if the backend doesn't support async ...
Bring-your-own allocator vtable.
Definition allocator.h:12
ssize_t result
Definition file_io.h:12
int zero_copy
Definition file_io.h:13
void * udata
Definition file_io.h:11
int(* cancel)(KlFileIO *fio, int sock_fd)
Definition file_io.h:24
void(* destroy)(KlFileIO *fio)
Definition file_io.h:31
int(* submit)(KlFileIO *fio, int file_fd, void *buf, size_t len, off_t offset, int sock_fd, void *udata)
Definition file_io.h:20
int(* tick)(KlFileIO *fio, KlFileIOResult *out, int max)
Definition file_io.h:28