函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:16:54
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__set_task_blocked

函数原型:static void __set_task_blocked(struct task_struct *tsk, const sigset_t *newset)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
const sigset_t *newset
2880  如果signal_pending(tsk)且非thread_group_empty(tsk)则
2883  sigandnsets( & newblocked, newset, & blocked)
2884  It could be that complete_signal() picked us to notify about the* group-wide signal. Other threads should be notified now to take* the shared signals in @which since we will not.
2886  需要阻塞的信号等于newset
2887  确定进程等待信号
调用者
名称描述
__set_current_blocked
do_sigtimedwaitdo_sigtimedwait - wait for queued signals specified in @which*@which: queued signals to wait for*@info: if non-null, the signal's siginfo is returned here*@ts: upper bound on process time suspension