函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ask_set_jobctl_pending - set jobctl pending bits*@task: target task*@mask: pending bits to set* Clear @mask from @task->jobctl. @mask must be subset of* %JOBCTL_PENDING_MASK | %JOBCTL_STOP_CONSUME | %JOBCTL_STOP_SIGMASK |* %JOBCTL_TRAPPING

函数原型:bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
unsigned longmask
287  BUG_ON(mask & ~(JOBCTL_PENDING_MASK | JOBCTL_STOP_CONSUME | signr of the last group stop | JOBCTL_TRAPPING))
289  BUG_ON((mask & JOBCTL_TRAPPING) && !(mask & JOBCTL_PENDING_MASK))
291  如果此条件成立可能性小(为编译器优化)(fatal_signal_pending(task) || (任务标志 & Getting shut down ))则返回:false
294  如果mask按位与signr of the last group stop JOBCTL_*, siglock protected: 与等于signr of the last group stop 的反
297  JOBCTL_*, siglock protected: 或等于mask
298  返回:true
调用者
名称描述
ptrace_request
task_join_group_stop
ptrace_trap_notifyptrace_trap_notify - schedule trap to notify ptracer*@t: tracee wanting to notify tracer* This function schedules sticky ptrace trap which is cleared on the next* TRAP_STOP to notify ptracer of an event. @t must have been seized by* ptracer.
do_signal_stopdo_signal_stop - handle group stop for SIGSTOP and other stop signals*@signr: signr causing group stop if initiating* If %JOBCTL_STOP_PENDING is not set yet, initiate group stop with @signr* and participate in it
ptrace_attach
ptrace_init_task调试跟踪初始化