Home
last modified time | relevance | path

Searched refs:sleep_time (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/time/
Dsleep.rs24 pub fn nanosleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in nanosleep()
25 if sleep_time.tv_nsec < 0 || sleep_time.tv_nsec >= 1000000000 { in nanosleep()
30 if sleep_time.tv_nsec < 500000 { in nanosleep()
32 unsafe { _rdtsc() + (sleep_time.tv_nsec as u64 * Cpu_tsc_freq) / 1000000000 }; in nanosleep()
45 next_n_us_timer_jiffies((sleep_time.tv_nsec / 1000) as u64), in nanosleep()
73 pub fn usleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in usleep()
74 match nanosleep(sleep_time) { in usleep()
91 let sleep_time = TimeSpec { in rs_usleep() localVariable
95 match usleep(sleep_time) { in rs_usleep()
Dsyscall.rs50 sleep_time: *const TimeSpec, in nanosleep()
53 if sleep_time == null_mut() { in nanosleep()
57 tv_sec: unsafe { *sleep_time }.tv_sec, in nanosleep()
58 tv_nsec: unsafe { *sleep_time }.tv_nsec, in nanosleep()