函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\gcov\base.c Create Date:2022-07-27 12:34:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Update list and generate events when modules are unloaded.

函数原型:static int gcov_module_notifier(struct notifier_block *nb, unsigned long event, void *data)

返回类型:int

参数:

类型参数名称
struct notifier_block *nb
unsigned longevent
void *data
57  mod等于data
58  struct gcov_info * info = NULL
59  struct gcov_info * prev = NULL
61  如果event不等于 Going away. 则返回:Suits me
63  mutex_lock( & gcov_lock)
66 info等于gcov_info_next(info)循环
67  如果gcov_info_within_module(info, mod)则
71  否则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  返回:Suits me