Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events.c Create Date:2022-07-28 12:20:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_module_notify

Proto:static int trace_module_notify(struct notifier_block *self, unsigned long val, void *data)

Type:int

Parameter:

TypeParameterName
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  Case val == Full formed, running module_init.
2468  trace_module_add_events(mod)
2469  Break
2470  Case val == Going away.
2471  trace_module_remove_events(mod)
2472  Break
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  Return 0