Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:46
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check passed kprobe is valid and return kprobe in kprobe_table.

Proto:static struct kprobe *__get_valid_kprobe(struct kprobe *p)

Type:struct kprobe

Parameter:

TypeParameterName
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  If Value for the false possibility is greater at compile time(!ap) Then Return NULL
1506  If p != ap Then
1507  list_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(list_p, & list of kprobes for multi-handler support , list)
1508  If list_p == p Then Go to valid
1511  Return NULL
1513  valid :
1514  Return ap
Caller
NameDescribe
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