函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\wait.c Create Date:2022-07-27 10:41:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Note! These two wait functions are entered with the* case), so there is no race with testing the wakeup* condition in the caller before they add the wait* entry to the wake queue.

函数原型:int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait)

返回类型:int

参数:

类型参数名称
wait_queue_head_t *wq
wait_queue_entry_t *waitqueue lock held (and interrupts off in the _irq
320  如果此条件成立可能性大(为编译器优化)(链表为空)则__add_wait_queue_entry_tail(wq, queue lock held (and interrupts off in the _irq)
323  set_current_state(睡眠态)
324  如果signal_pending(当前进程)则返回:负These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.
327  自旋锁解锁
328  进程调度
329  加自旋锁
331  返回:0