Function lrs::syscall::timerfd_create

Creates a new timerfd.

Syntax

fn timerfd_create(clock: i32, flags: i32) -> i32

Arguments

NameDescription
clock

The clock to be used for timekeeping.

flags

The flags to be used for creating the file descriptor.

Return value

Returns the file descriptor or an error value.

Remarks

Unless lrs was compiled with the no-auto-cloexec flag, this function automatically adds the TFD_CLOEXEC flag.

See also