| author | |
| committer | |
| log | ecfd9cef7d892cddf2a65a64a2906a881bab12fb |
| tree | e4520aa4616eb47f5b9258cd244f7b0c039502a8 |
| parent | 8d914ea7340c920c1929c5d666fc802b15f49a64 |
1 files changed, 9 insertions(+), 0 deletions(-)
lib/std/os/linux/io_uring_sqe.zig+9| ... | ... | @@ -436,6 +436,15 @@ pub const io_uring_sqe = extern struct { |
| 436 | 436 | sqe.rw_flags = flags; |
| 437 | 437 | } |
| 438 | 438 | |
| 439 | pub fn prep_cancel_fd( | |
| 440 | sqe: *linux.io_uring_sqe, | |
| 441 | fd: linux.fd_t, | |
| 442 | flags: u32, | |
| 443 | ) void { | |
| 444 | sqe.prep_rw(.ASYNC_CANCEL, fd, 0, 0, 0); | |
| 445 | sqe.rw_flags = flags | linux.IORING_ASYNC_CANCEL_FD; | |
| 446 | } | |
| 447 | ||
| 439 | 448 | pub fn prep_shutdown( |
| 440 | 449 | sqe: *linux.io_uring_sqe, |
| 441 | 450 | sockfd: linux.socket_t, |