函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wake_q_add_safe() - safely queue a wakeup for 'later' waking

函数原型:void wake_q_add_safe(struct wake_q_head *head, struct task_struct *task)

返回类型:void

参数:

类型参数名称
struct wake_q_head *head
struct task_struct *task
475  如果非__wake_q_add(head, task)则put_task_struct(task)
调用者
名称描述
rwsem_mark_wakehandle the lock release when processes blocked on it that can now run* - if we come here from up_xxxx(), then the RWSEM_FLAG_WAITERS bit must* have been set
mark_wake_futexThe hash bucket lock must be held when this is called.* Afterwards, the futex_q must not be accessed. Callers* must ensure to later call wake_up_q() for the actual* wakeups to occur.