iou

Rust interface to io_uring

Github星跟蹤圖

Interface to Linux's io_uring interface

iou is a wrapper around the liburing library, which provides a
high level interface to Linux's new io_uring interface. It is
intended to be extensible and flexible for any use case of io_uring, while
still resolving many of the basic safety issues on users' behalf.

The primary API of iou is the IoUring type and its components, the
SubmissionQueue, CompletionQueue and Registrar. This provides a Rust-like
and high level API that manages the io_uring for you.

Safety

Most of the APIs in iou are safe, and many of the safety issues in using
io_uring are completely resolved. In particular, the liburing library which iou
is based on correctly implements the atomics necessary to coordinate with the
kernel across the io_uring interface. However, some key interfaces remain
unsafe. In particular, preparing IO events to be submitted to the io_uring is
not safe: users must ensure that the buffers and file descriptors are regarded
as borrowed during the lifetime of the IO.

Kernel support

In order to use io_uring, the machine you are running your code on must have a
kernel which supports that interface. The first version of io_uring was added
in Linux 5.1, but it did not include all of the features supported by this
library. Some features of this library may not work depending on which version
of Linux you are using.

主要指標

概覽
名稱與所有者ringbahn/iou
主編程語言Rust
編程語言Rust (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2019-09-26 23:52:12
推送於2024-05-29 15:20:05
最后一次提交2020-11-24 19:23:03
發布數1
最新版本名稱v0.2.0 (發布於 )
第一版名稱v0.2.0 (發布於 )
用户参与
星數334
關注者數14
派生數22
提交數117
已啟用問題?
問題數21
打開的問題數5
拉請求數34
打開的拉請求數10
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?