Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:28
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__wake_q_add

Proto:static bool __wake_q_add(struct wake_q_head *head, struct task_struct *task)

Type:bool

Parameter:

TypeParameterName
struct wake_q_head *head
struct task_struct *task
416  node = wake_q
426  smp_mb__before_atomic()
427  If Value for the false possibility is greater at compile time(cmpxchg_relaxed( & next, NULL, WAKE_Q_TAIL)) Then Return false
433  lastp = node
434  lastp = next
435  Return true
Caller
NameDescribe
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