Function epoll_ctl [src]
Queues (but does not submit) an SQE to perform a epoll_ctl(2).
Returns a pointer to the SQE.
Prototype
pub fn epoll_ctl( self: *IoUring, user_data: u64, epfd: posix.fd_t, fd: posix.fd_t, op: u32, ev: ?*linux.epoll_event, ) !*linux.io_uring_sqe
Parameters
self: *IoUring
user_data: u64
epfd: posix.fd_t
fd: posix.fd_t
op: u32
ev: ?*linux.epoll_event
Source
pub fn epoll_ctl(
self: *IoUring,
user_data: u64,
epfd: posix.fd_t,
fd: posix.fd_t,
op: u32,
ev: ?*linux.epoll_event,
) !*linux.io_uring_sqe {
const sqe = try self.get_sqe();
sqe.prep_epoll_ctl(epfd, fd, op, ev);
sqe.user_data = user_data;
return sqe;
}