函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ask_participate_group_stop - participate in a group stop*@task: task participating in a group stop*@task has %JOBCTL_STOP_PENDING set and is participating in a group stop.* Group stop states are cleared and the group stop count is consumed if

函数原型:static bool task_participate_group_stop(struct task_struct *task)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
368  sig等于信号
369  consume等于 JOBCTL_*, siglock protected: 按位与JOBCTL_STOP_CONSUME
371  WARN_ON_ONCE(!( JOBCTL_*, siglock protected: & JOBCTL_STOP_PENDING))
373  ask_clear_jobctl_pending - clear jobctl pending bits*@task: target task*@mask: pending bits to clear* Clear @mask from @task->jobctl. @mask must be subset of* %JOBCTL_PENDING_MASK. If %JOBCTL_STOP_PENDING is being cleared, other
375  如果非consume则返回:false
378  如果非WARN_ON_ONCE(hread group stop support, overloads group_exit_code too == 0)则hread group stop support, overloads group_exit_code too 自减
385  如果非hread group stop support, overloads group_exit_code too 且非see SIGNAL_* flags below 按位与job control stop in effect 的值则
386  signal_set_stop_flags(sig, job control stop in effect )
387  返回:true
389  返回:false
调用者
名称描述
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
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
exit_signals