函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Module notifier call back, checking kprobes on the module

函数原型:static int kprobes_module_callback(struct notifier_block *nb, unsigned long val, void *data)

返回类型:int

参数:

类型参数名称
struct notifier_block *nb
unsigned longval
void *data
2222  mod等于data
2226  checkcore等于val恒等于 Going away.
2228  如果val不等于 Going away. val不等于 Normal state. 则返回:Don't care
2237  mutex_lock( & This protects kprobe_table and optimizing_list )
2238 i小于KPROBE_TABLE_SIZE循环
2239  head等于kprobe_table[i]
2240  hlist_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 hlist_node within the struct.(p, head, hlist)
2258  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2259  返回:Don't care