aboutsummaryrefslogtreecommitdiff
path: root/vendor/rustix/src/backend/libc/io_uring
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/rustix/src/backend/libc/io_uring
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/rustix/src/backend/libc/io_uring')
-rw-r--r--vendor/rustix/src/backend/libc/io_uring/mod.rs1
-rw-r--r--vendor/rustix/src/backend/libc/io_uring/syscalls.rs70
2 files changed, 0 insertions, 71 deletions
diff --git a/vendor/rustix/src/backend/libc/io_uring/mod.rs b/vendor/rustix/src/backend/libc/io_uring/mod.rs
deleted file mode 100644
index ef944f0..0000000
--- a/vendor/rustix/src/backend/libc/io_uring/mod.rs
+++ /dev/null
@@ -1 +0,0 @@
-pub(crate) mod syscalls;
diff --git a/vendor/rustix/src/backend/libc/io_uring/syscalls.rs b/vendor/rustix/src/backend/libc/io_uring/syscalls.rs
deleted file mode 100644
index 8e81824..0000000
--- a/vendor/rustix/src/backend/libc/io_uring/syscalls.rs
+++ /dev/null
@@ -1,70 +0,0 @@
-//! libc syscalls supporting `rustix::io_uring`.
-
-use crate::backend::c;
-use crate::backend::conv::{borrowed_fd, ret_owned_fd, ret_u32};
-use crate::fd::{BorrowedFd, OwnedFd};
-use crate::io;
-use crate::io_uring::{io_uring_params, IoringEnterFlags, IoringRegisterOp};
-
-#[inline]
-pub(crate) fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result<OwnedFd> {
- syscall! {
- fn io_uring_setup(
- entries: u32,
- params: *mut io_uring_params
- ) via SYS_io_uring_setup -> c::c_int
- }
- unsafe { ret_owned_fd(io_uring_setup(entries, params)) }
-}
-
-#[inline]
-pub(crate) unsafe fn io_uring_register(
- fd: BorrowedFd<'_>,
- opcode: IoringRegisterOp,
- arg: *const c::c_void,
- nr_args: u32,
-) -> io::Result<u32> {
- syscall! {
- fn io_uring_register(
- fd: c::c_uint,
- opcode: c::c_uint,
- arg: *const c::c_void,
- nr_args: c::c_uint
- ) via SYS_io_uring_register -> c::c_int
- }
- ret_u32(io_uring_register(
- borrowed_fd(fd) as _,
- opcode as u32,
- arg,
- nr_args,
- ))
-}
-
-#[inline]
-pub(crate) unsafe fn io_uring_enter(
- fd: BorrowedFd<'_>,
- to_submit: u32,
- min_complete: u32,
- flags: IoringEnterFlags,
- arg: *const c::c_void,
- size: usize,
-) -> io::Result<u32> {
- syscall! {
- fn io_uring_enter2(
- fd: c::c_uint,
- to_submit: c::c_uint,
- min_complete: c::c_uint,
- flags: c::c_uint,
- arg: *const c::c_void,
- size: usize
- ) via SYS_io_uring_enter -> c::c_int
- }
- ret_u32(io_uring_enter2(
- borrowed_fd(fd) as _,
- to_submit,
- min_complete,
- bitflags_bits!(flags),
- arg,
- size,
- ))
-}