函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check given address is on the page of kprobe instruction slots.* This will be used for checking whether the address on a stack* is on a text area or not.

函数原型:bool __is_insn_slot_addr(struct kprobe_insn_cache *c, unsigned long addr)

返回类型:bool

参数:

类型参数名称
struct kprobe_insn_cache *c
unsigned longaddr
278  bool ret = false
280  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
282  如果addr大于等于Page of instruction slots addr小于Page of instruction slots PAGE_SIZE
284  ret = true
285  退出
288  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
290  返回:ret
调用者
名称描述
is_kprobe_insn_slot
is_kprobe_optinsn_slot