函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:int blocking_notifier_chain_register(struct blocking_notifier_head *nh, struct notifier_block *n)

返回类型:int

参数:

类型参数名称
struct blocking_notifier_head *nh
struct notifier_block *n
213  如果此条件成立可能性小(为编译器优化)(Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. == SYSTEM_BOOTING)则返回:Notifier chain core routines. The exported routines below* are layered on top of these, with appropriate locking added.
216  lock for writing
217  ret等于Notifier chain core routines. The exported routines below* are layered on top of these, with appropriate locking added.
218  lease a write lock
219  返回:ret
调用者
名称描述
register_reboot_notifiergister_reboot_notifier - Register function to be called at reboot time*@nb: Info about notifier function to be called* Registers a function with the list of functions* to be called at reboot time
pm_qos_add_notifierpm_qos_add_notifier - sets notification entry for changes to target value*@pm_qos_class: identifies which qos target changes should be notified
freq_qos_add_notifierq_qos_add_notifier - Add frequency QoS change notifier.*@qos: List of requests to add the notifier to.*@type: Request type.*@notifier: Notifier block to add.
profile_event_register
register_module_notifier
register_tracepoint_module_notifiergister_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
padata_register_cpumask_notifierpadata_register_cpumask_notifier - Registers a notifier that will be called* if either pcpu or cbcpu or both cpumasks change.*@pinst: A poineter to padata instance*@nblock: A pointer to notifier block.
register_vmap_purge_notifier
mce_register_decode_chain
register_oom_notifier
register_blocking_lsm_notifier