Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/sched/
Dcompletion.c57 static long __wait_for_common(struct completion *x, long (*action)(long), long timeout, int state) in __wait_for_common() argument
63 while (!x->done && timeout > 0) in __wait_for_common()
72 timeout = action(timeout); in __wait_for_common()
76 return timeout; // 仍然没有complete, 但是被其他进程唤醒 in __wait_for_common()
84 return timeout ? timeout : 1; // 这里linux返回1,不知道为啥 in __wait_for_common()
106 long wait_for_completion_timeout(struct completion *x, long timeout) in wait_for_completion_timeout() argument
108 BUG_ON(timeout < 0); in wait_for_completion_timeout()
110 timeout = __wait_for_common(x, &schedule_timeout_ms, timeout, PROC_UNINTERRUPTIBLE); in wait_for_completion_timeout()
112 return timeout; in wait_for_completion_timeout()
134 long wait_for_completion_interruptible_timeout(struct completion *x, long timeout) in wait_for_completion_interruptible_timeout() argument
[all …]
/DragonOS-0.1.2/kernel/src/time/
Dtimer.c154 long schedule_timeout_ms(long timeout) in schedule_timeout_ms() argument
156 if (timeout == MAX_TIMEOUT) // 无期停止, 意味着不会调用func in schedule_timeout_ms()
161 else if (timeout < 0) in schedule_timeout_ms()
169 timer_func_init(&timer, &__wake_up_helper, current_pcb, timeout); in schedule_timeout_ms()
175 timeout -= timer_jiffies; in schedule_timeout_ms()
177 return timeout < 0 ? 0 : timeout; in schedule_timeout_ms()
Dtimer.h76 long schedule_timeout_ms(long timeout);
/DragonOS-0.1.2/kernel/src/common/
Dcompletion.h27 long wait_for_completion_timeout(struct completion *x, long timeout);
29 long wait_for_completion_interruptible_timeout(struct completion *x, long timeout);
/DragonOS-0.1.2/docs/kernel/sched/
Dwaiting.md175 …_completion_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。当等…
177 …nterruptible_timeout(struct completion *x, long timeout) | 将当前进程挂起,并设置挂起状态为PROC_INTERRUPTIBLE。当等待t…
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.c244 char timeout = 17; in xhci_hc_stop() local
249 if (--timeout == 0) in xhci_hc_stop()
276 int timeout = 500; // wait 500ms in xhci_hc_reset() local
289 if (--timeout == 0) in xhci_hc_reset()
317 int timeout = XHCI_XECP_LEGACY_TIMEOUT; in xhci_hc_stop_legacy() local
323 if (--timeout == 0) in xhci_hc_stop_legacy()
817 int timeout = 100; in xhci_reset_port() local
818 while (timeout) in xhci_reset_port()
833 --timeout; in xhci_reset_port()
838 if (timeout > 0) in xhci_reset_port()
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Derrno.md175 #define ETIME 77 /* 流式ioctl()超时 Stream ioctl() timeout*/