Skip to main content

SYS_NANOSLEEP

Constant SYS_NANOSLEEP 

Source
pub const SYS_NANOSLEEP: usize = 501;
Expand description

Suspend execution for a specified duration.

  • req_ptr: pointer to a Timespec struct (requested sleep time)
  • rem_ptr: pointer to receive the remaining time (0 = ignore)

Returns 0 on success. The actual sleep may be shorter due to signal delivery.