Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:36:15
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Module notifier call back, checking kprobes on the module

Proto:static int kprobes_module_callback(struct notifier_block *nb, unsigned long val, void *data)

Type:int

Parameter:

TypeParameterName
struct notifier_block *nb
unsigned longval
void *data
2222  mod = data
2226  checkcore = val == Going away.
2228  If val != Going away. && val != Normal state. Then Return Don't care
2237  mutex_lock( & This protects kprobe_table and optimizing_list )
2238  When i < KPROBE_TABLE_SIZE cycle
2239  head = kprobe_table[i]
2240  hlist_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the hlist_node within the struct.(p, head, hlist)
2258  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.
2259  Return Don't care