Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_qos_add_request - Insert new frequency QoS request into a given list.*@qos: Constraints to update.*@req: Preallocated request object.*@type: Request type.*@value: Request value.* Insert a new entry into the @qos list of requests, recompute the effective

Proto:int freq_qos_add_request(struct freq_constraints *qos, struct freq_qos_request *req, enum freq_qos_req_type type, s32 value)

Type:int

Parameter:

TypeParameterName
struct freq_constraints *qos
struct freq_qos_request *req
enum freq_qos_req_typetype
s32value
761  If IS_ERR_OR_NULL(qos) || Not req Then Return -EINVAL
764  If WARN(freq_qos_request_active(req), "%s() called for active request\n", __func__) Then Return -EINVAL
768  qos = qos
769  type = type
770  ret = q_qos_apply - Add/modify/remove frequency QoS request.*@req: Constraint request to apply.*@action: Action to perform (add/update/remove).*@value: Value to assign to the QoS request.* This is only meant to be called from inside pm_qos, not drivers.
771  If ret < 0 Then
772  qos = NULL
773  type = 0
776  Return ret