函数逻辑报告

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() - queue a wakeup for 'later' waking

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

返回类型:void

参数:

类型参数名称
struct wake_q_head *head
struct task_struct *task
452  如果__wake_q_add(head, task)则get_task_struct(task)
调用者
名称描述
__mutex_unlock_slowpath
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_wakeup_next_waiterRemove the top waiter from the current tasks pi waiter tree and* queue it up.* Called with lock->wait_lock held and interrupts disabled.
__cpu_stop_queue_work
expunge_all
pipelined_send
wake_up_sem_queue_prepare
pipelined_sendpipelined_send() - send a message directly to the task waiting in* sys_mq_timedreceive() (without inserting message into a queue).
pipelined_receivepipelined_receive() - if there is task waiting in sys_mq_timedsend()* gets its message and put to the queue (we have one free place for sure).
ss_wakeup