函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kill_pid_info

函数原型:int kill_pid_info(int sig, struct kernel_siginfo *info, struct pid *pid)

返回类型:int

参数:

类型参数名称
intsig
struct kernel_siginfo *info
struct pid *pid
1435  error等于负ESRCH
1438  循环
1439  _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
1440  p等于pid_task(pid, 单一进程)
1441  如果perror等于send signal info to all the members of a group
1443  _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()
1444  如果此条件成立可能性大(为编译器优化)(!p || error != - ESRCH)则返回:error
调用者
名称描述
kill_proc_info
kill_something_infokill_something_info() interprets pid in interesting ways just like kill(2).* POSIX specifies that kill(-1,sig) is unspecified, but what we have* is probably wrong. Should make it like BSD or SYSV.
kill_pid
SYSCALL_DEFINE4sys_pidfd_send_signal - Signal a process through a pidfd*@pidfd: file descriptor of the process*@sig: signal to send*@info: signal info*@flags: future flags* The syscall currently only signals via PIDTYPE_PID which covers* kill(,
it_real_fnThe timer is automagically restarted, when interval != 0
__do_notifyThe next function is only to split too long sys_mq_timedsend