函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prepare_to_wait_event

函数原型:long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state)

返回类型:long

参数:

类型参数名称
struct wait_queue_head *wq_head
struct wait_queue_entry *wq_entry
intstate
278  ret等于0
280  spin_lock_irqsave( & lock, flags)
281  如果signal_pending_state(state, 当前进程)则
294  删除链表项并重新初始化
295  ret等于负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.
296  否则
297  如果链表为空
303  set_current_state(state)
305  spin_unlock_irqrestore( & lock, flags)
307  返回:ret