函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:complete_signal

函数原型:static void complete_signal(int sig, struct task_struct *p, enum pid_type type)

返回类型:void

参数:

类型参数名称
intsig
struct task_struct *p
enum pid_typetype
986  signal等于信号
995  如果Test if P wants to take SIG. After we've checked all threads with this,* it's equivalent to finding no threads not blocking SIG. Any threads not* blocking SIG were ruled out because they are not running and already* have pending signalst等于p
997  否则如果type恒等于单一进程thread_group_empty(p)则返回
1003  否则
1007  t等于current thread group signal load-balancing target:
1009  t等于next_thread(t)
1018  current thread group signal load-balancing target: 等于t
1025  如果sig_fatal(p, sig)且非see SIGNAL_* flags below 按位与group exit in progress 的值且非sigismember( & real_blocked, sig)且sig恒等于SIGKILL或非ptrace的值则
1032  如果非sig_kernel_coredump(sig)则
1042  t等于p
1043  循环
1056  signal_wake_up(t, sig == SIGKILL)
1057  返回
调用者
名称描述
__send_signal
send_sigqueue