Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\jump_label.c Create Date:2022-07-28 13:49:09
Last Modify:2020-03-17 20:59:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:jump_label_module_notify

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

Type:int

Parameter:

TypeParameterName
struct notifier_block *self
unsigned longval
void *data
722  mod = data
723  ret = 0
725  cpus_read_lock()
726  jump_label_lock()
729  Case val == Full formed, running module_init.
730  ret = jump_label_add_module(mod)
731  If ret Then
732  WARN(1, "Failed to allocate memory: jump_label may not work properly.\n")
735  Break
736  Case val == Going away.
737  jump_label_del_module(mod)
738  Break
741  jump_label_unlock()
742  cpus_read_unlock()
744  Return Encapsulate (negative) errno value (in particular, NOTIFY_BAD <=> EPERM).