Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:send signal info to all the members of a group

Proto:int group_send_sig_info(int sig, struct kernel_siginfo *info, struct task_struct *p, enum pid_type type)

Type:int

Parameter:

TypeParameterName
intsig
struct kernel_siginfo *info
struct task_struct *p
enum pid_typetype
1403  _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
1404  ret = Bad permissions for sending the signal* - the caller must hold the RCU read lock
1405  _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()
1407  If Not ret && sig Then ret = do_send_sig_info(sig, info, p, type)
1410  Return ret
Caller
NameDescribe
__kill_pgrp_info__kill_pgrp_info() sends a signal to a process group: this is what the tty* control characters do (^C, ^Z etc)* - the caller must hold at least a readlock on tasklist_lock
kill_pid_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.
zap_pid_ns_processes
do_bpf_send_signal
____bpf_send_signal