函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int freq_qos_add_request(struct freq_constraints *qos, struct freq_qos_request *req, enum freq_qos_req_type type, s32 value)

返回类型:int

参数:

类型参数名称
struct freq_constraints *qos
struct freq_qos_request *req
enum freq_qos_req_typetype
s32value
761  如果是错误或空或非req则返回:负EINVAL
764  如果WARN(freq_qos_request_active(req), "%s() called for active request\n", __func__)则返回:负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  如果ret小于0则
772  qos = NULL
773  type等于0
776  返回:ret