authorgravatar for halildrk@gmail.comnikneym <halildrk@gmail.com> 2025-02-11 13:17:54+03:00
committergravatar for halildrk@gmail.comnikneym <halildrk@gmail.com> 2025-02-11 13:17:54+03:00
logecfd9cef7d892cddf2a65a64a2906a881bab12fb
treee4520aa4616eb47f5b9258cd244f7b0c039502a8
parent8d914ea7340c920c1929c5d666fc802b15f49a64

linux/io_uring_sqe: add prep_cancel_fd


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,6 +436,15 @@ pub const io_uring_sqe = extern struct {
436 sqe.rw_flags = flags;436 sqe.rw_flags = flags;
437 }437 }
438438
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 pub fn prep_shutdown(448 pub fn prep_shutdown(
440 sqe: *linux.io_uring_sqe,449 sqe: *linux.io_uring_sqe,
441 sockfd: linux.socket_t,450 sockfd: linux.socket_t,