Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_send_specific

Proto:static int do_send_specific(pid_t tgid, pid_t pid, int sig, struct kernel_siginfo *info)

Type:int

Parameter:

TypeParameterName
pid_ttgid
pid_tpid
intsig
struct kernel_siginfo *info
3764  error = -ESRCH
3766  _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
3767  p = d a task by one of its numerical ids* find_task_by_pid_ns():* finds a task by its pid in the specified namespace* find_task_by_vpid():* finds a task by its virtual pid* see also find_vpid() etc in include/linux/pid.h
3768  If p && ( tgid <= 0 || task_tgid_vnr(p) == tgid ) Then
3769  error = Bad permissions for sending the signal* - the caller must hold the RCU read lock
3774  If Not error && sig Then
3785  _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()
3787  Return error
Caller
NameDescribe
do_tkill
do_rt_tgsigqueueinfo