Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:collect_garbage_slots

Proto:static int collect_garbage_slots(struct kprobe_insn_cache *c)

Type:int

Parameter:

TypeParameterName
struct kprobe_insn_cache *c
219  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
223  If ngarbage == 0 Then Continue
225  ngarbage = 0
226  When i < slots_per_page(c) cycle
227  If slot_used[i] == SLOT_DIRTY && Return 1 if all garbages are collected, otherwise 0. Then Break
231  nr_garbage = 0
232  Return 0
Caller
NameDescribe
__get_insn_slot__get_insn_slot() - Find a slot on an executable page for an instruction.* We allocate an executable page if there's no room on existing ones.
__free_insn_slot