函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gister_tracepoint_notifier - register tracepoint coming/going notifier*@nb: notifier block* Notifiers registered with this function are called on module* coming/going with the tracepoint_module_list_mutex held

函数原型:int register_tracepoint_module_notifier(struct notifier_block *nb)

返回类型:int

参数:

类型参数名称
struct notifier_block *nb
397  mutex_lock( & Tracepoint module list mutex protects the local module list.)
398  ret等于locking_notifier_chain_register - Add notifier to a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: New entry in notifier chain* Adds a notifier to a blocking notifier chain.* Must be called in process context.
399  如果ret则转到:end
401  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(tp_mod, & Local list of struct tp_module , list)
402  notifier_call(nb, Full formed, running module_init. , tp_mod)
403  end :
404  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.
405  返回:ret