Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.9/kernel/src/sched/
Dcompletion.rs29 fn do_wait_for_common(&self, mut timeout: i64, interuptible: bool) -> Result<i64, SystemError> { in do_wait_for_common()
47 timeout = schedule_timeout(timeout)?; in do_wait_for_common()
49 if inner.done != 0 || timeout <= 0 { in do_wait_for_common()
56 return Ok(timeout); in do_wait_for_common()
63 return Ok(if timeout > 0 { timeout } else { 1 }); in do_wait_for_common()
68 pub fn wait_for_completion_timeout(&self, timeout: i64) -> Result<i64, SystemError> { in wait_for_completion_timeout()
69 self.do_wait_for_common(timeout, false) in wait_for_completion_timeout()
84 timeout: i64, in wait_for_completion_interruptible_timeout()
86 assert!(timeout >= 0); in wait_for_completion_interruptible_timeout()
87 self.do_wait_for_common(timeout, true) in wait_for_completion_interruptible_timeout()
/DragonOS-0.1.9/kernel/src/net/event_poll/
Dsyscall.rs37 timeout: i32, in epoll_wait()
44 if timeout == 0 { in epoll_wait()
48 if timeout > 0 { in epoll_wait()
49 let sec: i64 = timeout as i64 / 1000; in epoll_wait()
50 let nsec: i64 = 1000000 * (timeout as i64 % 1000); in epoll_wait()
Dmod.rs417 let mut timeout = false; in do_epoll_wait() localVariable
422 timeout = true; in do_epoll_wait()
440 if timeout { in do_epoll_wait()
491 if timer.as_ref().unwrap().timeout() { in do_epoll_wait()
493 timeout = true; in do_epoll_wait()
/DragonOS-0.1.9/docs/kernel/sched/
Dkernel_timer.md11 &emsp;&emsp;**如果只是希望当前pcb休眠一段时间,应调用`schedule_timeout(timeout)`,timeout指定pcb休眠的时间长度。**
58 pub fn schedule_timeout(mut timeout: i64) -> Result<i64, SystemError>
63 &emsp;&emsp;让进程休眠timeout个jiffies
67 - timeout:需要休眠的时间 (单位:**jiffies**)
Dc_waiting.md181 …_completion_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。当等…
183 …nterruptible_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为PROC_INTERRUPTIBLE。当等待t…
/DragonOS-0.1.9/kernel/src/libs/futex/
Dsyscall.rs12 timeout: Option<TimeSpec>, in do_futex()
38 return Futex::futex_wait(uaddr, flags, val, timeout, FUTEX_BITSET_MATCH_ANY); in do_futex()
41 return Futex::futex_wait(uaddr, flags, val, timeout, val3); in do_futex()
Dfutex.rs321 if timer.clone().unwrap().timeout() { in futex_wait()
339 if !timer.timeout() { in futex_wait()
/DragonOS-0.1.9/kernel/src/time/
Dtimer.rs138 pub fn timeout(&self) -> bool { in timeout() method
262 pub fn schedule_timeout(mut timeout: i64) -> Result<i64, SystemError> { in schedule_timeout()
264 if timeout == MAX_TIMEOUT { in schedule_timeout()
268 } else if timeout < 0 { in schedule_timeout()
275 timeout += TIMER_JIFFIES.load(Ordering::SeqCst) as i64; in schedule_timeout()
278 timeout as u64, in schedule_timeout()
286 let time_remaining: i64 = timeout - TIMER_JIFFIES.load(Ordering::SeqCst) as i64; in schedule_timeout()
/DragonOS-0.1.9/tools/debugging/logmonitor/src/
Devent.rs44 let timeout = tick_rate in new() localVariable
48 if event::poll(timeout).expect("no events available") { in new()
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/
Dps_mouse_device.rs390 let timeout = 100_000; in wait_for_read() localVariable
391 for _ in 0..timeout { in wait_for_read()
401 let timeout = 100_000; in wait_for_write() localVariable
402 for _ in 0..timeout { in wait_for_write()