Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_tkill

Proto:static int do_tkill(pid_t tgid, pid_t pid, int sig)

Type:int

Parameter:

TypeParameterName
pid_ttgid
pid_tpid
intsig
3794  clear_siginfo( & info)
3795  si_signo = sig
3796  si_errno = 0
3797  si_code = sent by tkill system call
3798  si_pid = task_tgid_vnr(current process)
3799  si_uid = from_kuid_munged(current_user_ns(), current_uid())
3801  Return do_send_specific(tgid, pid, sig, & info)
Caller
NameDescribe
SYSCALL_DEFINE3sys_tgkill - send signal to one specific thread*@tgid: the thread group ID of the thread*@pid: the PID of the thread*@sig: signal to be sent* This syscall also checks the @tgid and returns -ESRCH even if the PID
SYSCALL_DEFINE2sys_tkill - send signal to one specific task*@pid: the PID of the task*@sig: signal to be sent* Send a signal to only one task, even if it's a CLONE_THREAD task.