Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_qos_remove_notifier - Remove frequency QoS change notifier.*@qos: List of requests to remove the notifier from.*@type: Request type.*@notifier: Notifier block to remove.

Proto:int freq_qos_remove_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
881  If IS_ERR_OR_NULL(qos) || Not notifier Then Return -EINVAL
885  Case type == FREQ_QOS_MIN
886  ret = locking_notifier_chain_unregister - Remove notifier from a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: Entry to remove from notifier chain* Removes a notifier from a blocking notifier chain.
888  Break
889  Case type == FREQ_QOS_MAX
890  ret = locking_notifier_chain_unregister - Remove notifier from a blocking notifier chain*@nh: Pointer to head of the blocking notifier chain*@n: Entry to remove from notifier chain* Removes a notifier from a blocking notifier chain.
892  Break
893  Default
894  WARN_ON(1)
895  ret = -EINVAL
898  Return ret