Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\base.c Create Date:2022-07-28 11:31:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Update list and generate events when modules are unloaded.

Proto:static int gcov_module_notifier(struct notifier_block *nb, unsigned long event, void *data)

Type:int

Parameter:

TypeParameterName
struct notifier_block *nb
unsigned longevent
void *data
57  mod = data
58  struct gcov_info * info = NULL
59  struct gcov_info * prev = NULL
61  If event != Going away. Then Return Suits me
63  mutex_lock( & gcov_lock)
66  When info = gcov_info_next(info) cycle
71  Else prev = info
75  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.
77  Return Suits me