函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:recalc_sigpending_tsk

函数原型:static bool recalc_sigpending_tsk(struct task_struct *t)

返回类型:bool

参数:

类型参数名称
struct task_struct *t
156  如果 JOBCTL_*, siglock protected: 按位与JOBCTL_PENDING_MASK按位或JOBCTL_TRAP_FREEZE的值或PENDING( & 待处理信号, & 需要阻塞的信号)或PENDING( & shared_pending, & 需要阻塞的信号)或cgroup_task_frozen(t)则
160  Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
161  返回:true
169  返回:false
调用者
名称描述
recalc_sigpending_and_wakeAfter recalculating TIF_SIGPENDING, we need to make sure the task wakes up.* This is superfluous when called on current, the wakeup is a harmless no-op.
recalc_sigpending确定进程等待信号
ptrace_stopThis must be called with current->sighand->siglock held.* This should be the path for all ptrace stops.* We always set current->last_siginfo while stopped here.* That makes it a way to test a stopped process for