| ... | ... | @@ -525,6 +525,21 @@ pub const io_uring_sqe = extern struct { |
| 525 | 525 | sqe.rw_flags = flags; |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | pub fn prep_files_update( |
| 529 | sqe: *linux.io_uring_sqe, |
| 530 | fds: []const linux.fd_t, |
| 531 | offset: u32, |
| 532 | ) void { |
| 533 | sqe.prep_rw(.FILES_UPDATE, -1, @intFromPtr(fds.ptr), fds.len, @intCast(offset)); |
| 534 | } |
| 535 | |
| 536 | pub fn prep_files_update_alloc( |
| 537 | sqe: *linux.io_uring_sqe, |
| 538 | fds: []linux.fd_t, |
| 539 | ) void { |
| 540 | sqe.prep_rw(.FILES_UPDATE, -1, @intFromPtr(fds.ptr), fds.len, linux.IORING_FILE_INDEX_ALLOC); |
| 541 | } |
| 542 | |
| 528 | 543 | pub fn prep_provide_buffers( |
| 529 | 544 | sqe: *linux.io_uring_sqe, |
| 530 | 545 | buffers: [*]u8, |