函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:39:32
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check passed kprobe is valid and return kprobe in kprobe_table.

函数原型:static struct kprobe *__get_valid_kprobe(struct kprobe *p)

返回类型:struct kprobe

参数:

类型参数名称
struct kprobe *p
1502  ap等于This routine is called either:* - under the kprobe_mutex - during kprobe_[un]register()* OR* - with preemption disabled - from arch/xxx/kernel/kprobes.c
1503  如果此条件成立可能性小(为编译器优化)(!ap)则返回:NULL
1506  如果p不等于ap
1507  遍历RCU(list_p, & list of kprobes for multi-handler support , list)
1508  如果list_p恒等于p则转到:valid
1511  返回:NULL
1513  valid :
1514  返回:ap
调用者
名称描述
check_kprobe_reregReturn error if the kprobe is being re-registered
__disable_kprobeDisable one kprobe: Make sure called under kprobe_mutex is locked
enable_kprobeEnable one kprobe