函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-27 13:48:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_event_notify

函数原型:static int bpf_event_notify(struct notifier_block *nb, unsigned long op, void *module)

返回类型:int

参数:

类型参数名称
struct notifier_block *nb
unsigned longop
void *module
1602  mod等于module
1604  如果num_bpf_raw_events恒等于0或op不等于 Full formed, running module_init. op不等于 Going away. 则返回:0
1608  mutex_lock( & bpf_module_mutex)
1611  :op恒等于 Full formed, running module_init.
1612  btm等于分配内存并置零
1613  如果btm
1614  module等于module
1617  退出
1618  :op恒等于 Going away.
1620  如果module恒等于module
1622  kfree(btm)
1623  退出
1626  退出
1629  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.
1631  返回:0