⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

epoll_wait

Function epoll_wait 

Source
pub fn epoll_wait(
    epoll_id: u32,
    events: &mut [EpollEvent],
    timeout_ms: i32,
) -> Result<usize, KernelError>
Expand description

Wait for events on an epoll instance.

Returns the number of ready events written to events. If timeout_ms is 0, returns immediately (non-blocking poll). If timeout_ms is -1, waits up to 30s (capped to prevent permanent hangs). Otherwise waits up to timeout_ms milliseconds.