函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Verify that the signaler and signalee either are in the same pid namespace* or that the signaler's pid namespace is an ancestor of the signalee's pid* namespace.

函数原型:static bool access_pidfd_pidns(struct pid *pid)

返回类型:bool

参数:

类型参数名称
struct pid *pid
3650  active等于task_active_pid_ns(当前进程)
3651  p等于设置进程信息
3653  循环
3654  如果非p则返回:false
3656  如果p恒等于active退出
3658  p等于父进程空间
3661  返回:true
调用者
名称描述
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(,