mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
linux/io_uring_sqe: add prep_cancel_fd
This commit is contained in:
parent
8d914ea734
commit
ecfd9cef7d
@ -436,6 +436,15 @@ pub const io_uring_sqe = extern struct {
|
||||
sqe.rw_flags = flags;
|
||||
}
|
||||
|
||||
pub fn prep_cancel_fd(
|
||||
sqe: *linux.io_uring_sqe,
|
||||
fd: linux.fd_t,
|
||||
flags: u32,
|
||||
) void {
|
||||
sqe.prep_rw(.ASYNC_CANCEL, fd, 0, 0, 0);
|
||||
sqe.rw_flags = flags | linux.IORING_ASYNC_CANCEL_FD;
|
||||
}
|
||||
|
||||
pub fn prep_shutdown(
|
||||
sqe: *linux.io_uring_sqe,
|
||||
sockfd: linux.socket_t,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user