函数逻辑报告 |
Source Code:kernel\signal.c |
Create Date:2020-09-18 12:18:39 |
| Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载PLEA | English |
函数名称:sys_pidfd_send_signal - Signal a process through a pidfd
函数原型:SYSCALL_DEFINE4(pidfd_send_signal, int, pidfd, int, sig, siginfo_t *, info, unsigned int, flags)
返回类型:
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned | int |
| 3725 | pid等于pidfd_to_pid(file) |
| 3726 | 如果是错误则 |
| 3732 | 如果非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.则转到:err |
| 3735 | 如果info则 |
| 3736 | ret等于copy_siginfo_from_user_any( & kinfo, info) |
| 3737 | 如果此条件成立可能性小(为编译器优化)(ret)则转到:err |
| 3741 | 如果此条件成立可能性小(为编译器优化)(sig != si_signo)则转到:err |
| 3749 | 否则 |
| 3750 | prepare_kill_siginfo(sig, & kinfo) |
| 3753 | ret等于kill_pid_info(sig, & kinfo, pid) |
| 3755 | err: | |
| 3757 | 返回:ret |