函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_module_notify

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

返回类型:int

参数:

类型参数名称
struct notifier_block *self
unsigned longval
void *data
2462  mod等于data
2464  mutex_lock( & event_mutex)
2465  mutex_lock( & race_types_lock is used to protect the trace_types list.)
2467  :val恒等于 Full formed, running module_init.
2468  trace_module_add_events(mod)
2469  退出
2470  :val恒等于 Going away.
2471  trace_module_remove_events(mod)
2472  退出
2474  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.
2475  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.
2477  返回:0