函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:collect_garbage_slots

函数原型:static int collect_garbage_slots(struct kprobe_insn_cache *c)

返回类型:int

参数:

类型参数名称
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  如果ngarbage恒等于0则继续下一循环
225  ngarbage等于0
226 i小于slots_per_page(c)循环
227  如果slot_used[i]恒等于SLOT_DIRTYReturn 1 if all garbages are collected, otherwise 0. 退出
231  nr_garbage等于0
232  返回:0
调用者
名称描述
__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