Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:16:09
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kill_pid_info

Proto:int kill_pid_info(int sig, struct kernel_siginfo *info, struct pid *pid)

Type:int

Parameter:

TypeParameterName
intsig
struct kernel_siginfo *info
struct pid *pid
1435  error = -ESRCH
1438  cycle
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, PIDTYPE_PID)
1441  If p Then error = 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  If Value is more likely to compile time(!p || error != - ESRCH) Then Return error
Caller
NameDescribe
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