Function lrs::syscall::clock_nanosleep

Sleeps for a certain amount of time.

Syntax

fn clock_nanosleep(clock: i32, flags: i32, req: &timespec, rem: &mut timespec) -> i32

Arguments

NameDescription
clock

The clock used for timekeeping.

flags

Flags used for sleeping.

req

The requested amount of sleep.

rem

The place where the remaining amount of time is placed.

Return value

Returns success or an error value.

See also