函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:04
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__wake_q_add

函数原型:static bool __wake_q_add(struct wake_q_head *head, struct task_struct *task)

返回类型:bool

参数:

类型参数名称
struct wake_q_head *head
struct task_struct *task
416  node等于wake_q
426  smp_mb__before_atomic()
427  如果此条件成立可能性小(为编译器优化)(cmpxchg_relaxed( & next, NULL, WAKE_Q_TAIL))则返回:false
433  lastp等于node
434  lastp等于next
435  返回:true
调用者
名称描述
wake_q_addwake_q_add() - queue a wakeup for 'later' waking
wake_q_add_safewake_q_add_safe() - safely queue a wakeup for 'later' waking