Function kevent_timespec

Source
pub unsafe fn kevent_timespec<Fd: AsFd, Buf: Buffer<Event>>(
    kqueue: Fd,
    changelist: &[Event],
    eventlist: Buf,
    timeout: Option<&Timespec>,
) -> Result<Buf::Output>
Expand description

kevent(kqueue, changelist, eventlist, timeout)—Wait for events on a kqueue.

If an unsupported timeout is passed, this function fails with io::Errno::INVAL.

§Safety

The file descriptors referred to by the Event structs must be valid for the lifetime of the kqueue file descriptor.

§References