函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_do_notify

函数原型:static void ptrace_do_notify(int signr, int exit_code, int why)

返回类型:void

参数:

类型参数名称
intsignr
intexit_code
intwhy
2256  clear_siginfo( & info)
2257  si_signo等于signr
2258  si_code等于exit_code
2259  si_pid等于task_pid_vnr(当前进程)
2260  si_uid等于from_kuid_munged(current_user_ns(), current_uid())
2263  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
调用者
名称描述
ptrace_notify
do_jobctl_trapdo_jobctl_trap - take care of ptrace jobctl traps* When PT_SEIZED, it's used for both group stop and explicit* SEIZE/INTERRUPT traps. Both generate PTRACE_EVENT_STOP trap with* accompanying siginfo. If stopped, lower eight bits of exit_code contain