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

timerfd_create

Function timerfd_create 

Source
pub fn timerfd_create(clockid: u32, flags: u32) -> Result<usize, SyscallError>
Expand description

Create a new timerfd.

§Arguments

  • clockid: CLOCK_REALTIME or CLOCK_MONOTONIC.
  • flags: Combination of TFD_NONBLOCK, TFD_CLOEXEC.

§Returns

The timerfd ID on success.