函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_tkill

函数原型:static int do_tkill(pid_t tgid, pid_t pid, int sig)

返回类型:int

参数:

类型参数名称
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(当前进程)
3799  si_uid等于from_kuid_munged(current_user_ns(), current_uid())
3801  返回:do_send_specific(tgid, pid, sig, & info)
调用者
名称描述
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.