函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prepare_kill_siginfo

函数原型:static inline void prepare_kill_siginfo(int sig, struct kernel_siginfo *info)

返回类型:void

参数:

类型参数名称
intsig
struct kernel_siginfo *info
3621  clear_siginfo(info)
3622  si_signo等于sig
3623  si_errno等于0
3624  si_code等于sent by kill, sigsend, raise
3625  si_pid等于task_tgid_vnr(当前进程)
3626  si_uid等于from_kuid_munged(current_user_ns(), current_uid())
调用者
名称描述
SYSCALL_DEFINE2sys_kill - send a signal to a process*@pid: the PID of the process*@sig: signal to be sent
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(,