Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_event_notify

Proto:static int bpf_event_notify(struct notifier_block *nb, unsigned long op, void *module)

Type:int

Parameter:

TypeParameterName
struct notifier_block *nb
unsigned longop
void *module
1602  mod = module
1604  If num_bpf_raw_events == 0 || op != Full formed, running module_init. && op != Going away. Then Return 0
1608  mutex_lock( & bpf_module_mutex)
1611  Case op == Full formed, running module_init.
1612  btm = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1613  If btm Then
1614  module = module
1617  Break
1618  Case op == Going away.
1620  If module == module Then
1622  kfree(btm)
1623  Break
1626  Break
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  Return 0