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

timerfd_read

Function timerfd_read 

Source
pub fn timerfd_read(tfd_id: u32) -> Result<u64, SyscallError>
Expand description

Read from a timerfd – returns number of expirations since last read.

Checks the timer against current time and accumulates expirations. If nonblock is set, returns EAGAIN immediately when no expirations. In blocking mode, busy-waits with scheduler yield until the timer fires (capped at 30s to prevent permanent hangs).