函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int freq_qos_add_notifier(struct freq_constraints *qos, enum freq_qos_req_type type, struct notifier_block *notifier)

返回类型:int

参数:

类型参数名称
struct freq_constraints *qos
enum freq_qos_req_typetype
struct notifier_block *notifier
848  如果是错误或空或非notifier则返回:负EINVAL
852  :type恒等于FREQ_QOS_MIN
853  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.
855  退出
856  :type恒等于FREQ_QOS_MAX
857  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.
859  退出
860  默认
861  WARN_ON(1)
862  ret等于负EINVAL
865  返回:ret