函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_signal

函数原型:static int ptrace_signal(int signr, kernel_siginfo_t *info)

返回类型:int

参数:

类型参数名称
intsignr
kernel_siginfo_t *info
2484  jobctl或等于JOBCTL_STOP_DEQUEUED
2485  This 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
2488  signr等于exit_code
2489  如果signr恒等于0则返回:signr
2492  exit_code等于0
2500  如果signr不等于si_signo
2501  clear_siginfo(info)
2502  si_signo等于signr
2503  si_errno等于0
2504  si_code等于sent by kill, sigsend, raise
2505  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2506  si_pid等于task_pid_vnr(parent)
2507  si_uid等于from_kuid_munged(current_user_ns(), task_uid(parent))
2509  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
2513  如果sigismember( & blocked, signr)则
2514  send_signal(signr, info, 当前进程, 单一进程)
2515  signr等于0
2518  返回:signr
调用者
名称描述
get_signal