Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\qos.c Create Date:2022-07-28 09:56:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int freq_qos_add_notifier(struct freq_constraints *qos, enum freq_qos_req_type type, struct notifier_block *notifier)

Type:int

Parameter:

TypeParameterName
struct freq_constraints *qos
enum freq_qos_req_typetype
struct notifier_block *notifier
848  If IS_ERR_OR_NULL(qos) || Not notifier Then Return -EINVAL
852  Case 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  Break
856  Case 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  Break
860  Default
861  WARN_ON(1)
862  ret = -EINVAL
865  Return ret