Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-28 12:36:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:____bpf_send_signal

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_send_signal(u32 sig)

Type:u64

Parameter:

TypeParameterName
u32sig
720  struct send_signal_irq_work * work = NULL
727  If Value for the false possibility is greater at compile time(flags & (I am a kernel thread | Getting shut down )) Then Return -EPERM
729  If Value for the false possibility is greater at compile time(uaccess_kernel()) Then Return -EPERM
731  If Value for the false possibility is greater at compile time(!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.) Then Return -EPERM
734  If in_nmi() Then
738  If Value for the false possibility is greater at compile time(!Test if 'sig' is valid signal. Use this instead of testing _NSIG directly ) Then Return -EINVAL
741  work = this_cpu_ptr( & send_signal_work)
742  If atomic_read( & flags) & IRQ_WORK_BUSY Then Return -EBUSY
749  task = current process
750  sig = sig
751  irq_work_queue( & irq_work)
752  Return 0
755  Return send signal info to all the members of a group