Searched refs:sleep_time (Results 1 – 3 of 3) sorted by relevance
26 pub fn nanosleep(sleep_time: PosixTimeSpec) -> Result<PosixTimeSpec, SystemError> { in nanosleep()27 if sleep_time.tv_nsec < 0 || sleep_time.tv_nsec >= 1000000000 { in nanosleep()31 if sleep_time.tv_nsec < 500000 && sleep_time.tv_sec == 0 { in nanosleep()32 let expired_tsc: usize = CurrentTimeArch::cal_expire_cycles(sleep_time.tv_nsec as usize); in nanosleep()43 sleep_time.tv_sec as u64 * 1000000 + sleep_time.tv_nsec as u64 / 1000; in nanosleep()61 let rm_time: PosixTimeSpec = (sleep_time - real_sleep_time.into()).into(); in nanosleep()
76 sleep_time: *const PosixTimeSpec, in nanosleep()79 if sleep_time.is_null() { in nanosleep()83 tv_sec: unsafe { *sleep_time }.tv_sec, in nanosleep()84 tv_nsec: unsafe { *sleep_time }.tv_nsec, in nanosleep()
128 let sleep_time = PosixTimeSpec { in dhcp_query() localVariable132 let _ = nanosleep(sleep_time)?; in dhcp_query()