mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
linux/io_uring_sqe: add prep_files_update
This commit is contained in:
parent
ecfd9cef7d
commit
6f6b85e298
1 changed files with 15 additions and 0 deletions
|
|
@ -525,6 +525,21 @@ pub const io_uring_sqe = extern struct {
|
|||
sqe.rw_flags = flags;
|
||||
}
|
||||
|
||||
pub fn prep_files_update(
|
||||
sqe: *linux.io_uring_sqe,
|
||||
fds: []const linux.fd_t,
|
||||
offset: u32,
|
||||
) void {
|
||||
sqe.prep_rw(.FILES_UPDATE, -1, @intFromPtr(fds.ptr), fds.len, @intCast(offset));
|
||||
}
|
||||
|
||||
pub fn prep_files_update_alloc(
|
||||
sqe: *linux.io_uring_sqe,
|
||||
fds: []linux.fd_t,
|
||||
) void {
|
||||
sqe.prep_rw(.FILES_UPDATE, -1, @intFromPtr(fds.ptr), fds.len, linux.IORING_FILE_INDEX_ALLOC);
|
||||
}
|
||||
|
||||
pub fn prep_provide_buffers(
|
||||
sqe: *linux.io_uring_sqe,
|
||||
buffers: [*]u8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue