函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-27 13:46:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:____bpf_send_signal

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_send_signal(u32 sig)

返回类型:u64

参数:

类型参数名称
u32sig
720  struct send_signal_irq_work * work = NULL
727  如果此条件成立可能性小(为编译器优化)(flags & (I am a kernel thread | Getting shut down ))则返回:负EPERM
729  如果此条件成立可能性小(为编译器优化)(uaccess_kernel())则返回:负EPERM
731  如果此条件成立可能性小(为编译器优化)(!Blindly accessing user memory from NMI context can be dangerous* if we're in the middle of switching the current user task or* switching the loaded mm. It can also be dangerous if we* interrupted some kernel code that was temporarily using a* different mm.)则返回:负EPERM
734  如果in_nmi()则
738  如果此条件成立可能性小(为编译器优化)(!Test if 'sig' is valid signal. Use this instead of testing _NSIG directly )则返回:负EINVAL
741  work等于this_cpu_ptr( & send_signal_work)
742  如果atomic_read( & flags)按位与IRQ_WORK_BUSY则返回:负EBUSY
749  task等于当前进程
750  sig等于sig
751  irq_work_queue( & irq_work)
752  返回:0
755  返回:send signal info to all the members of a group