ocaml-uring icon indicating copy to clipboard operation
ocaml-uring copied to clipboard

Bindings to io_uring for OCaml

Results 10 ocaml-uring issues
Sort by recently updated
recently updated
newest added

When run on a ZFS partition (`Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-102-generic x86_64)`), this program spins forever and cannot be killed: ```ocaml let rec wait_with_retry uring = match Uring.wait uring with...

bug

It is unclear what the purpose of `dlluring.so` is. It is an ELF file with an SONAME (`liburing.so.2`). Nothing appears to link to this SONAME. Nothing appears to dlopen this...

Import `fnctl.h` from `linux/fcntl.h` to retrieve iouring constants that are only defined there in 5.x series kernels

This is an experiment to switch away from Cstruct to Bstruct (bytes-backed Cstruct). The main issue is that the bytes are in the OCaml heap but we have to ensure...

At the moment using the latest WSL kernel, the fd passing `sendmsg` examples are failing with `EINVAL`. Not sure if this is an issue in the C stubs or something...

The Uring `accept` API returns the file descriptor for the accepted socket in `result:int` as part of ```ocaml type 'a completion_option = | None | Some of { result: int;...

still testing this, and need to add in the new ops for get/setsockopt to the bindings

Eliminates both the need to probe `AT_FDCWD` and the need to use `Obj.magic` in the library to pass it to the C stubs. If my understanding of the calling convention...

This is a more invasive alternative to #129 (which also "fixes" #117). I've pontificated about it [on my blog](https://www.dra27.uk/blog/platform/2025/10/01/int-file-descriptors-considered-harmful.html). With this idea, even in a thin wrapping around io\_uring, an...

Provides a solution for #117, but at a cost of an extra C call.