函数逻辑报告 |
Source Code:kernel\power\qos.c |
Create Date:2022-07-27 10:56:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pm_qos_update_target - manages the constraints list and calls the notifiers* if needed*@c: constraints data struct*@node: request to add to the list, to update or to remove*@action: action to take on the constraints list*@value: value of the request to
函数原型:int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node, enum pm_qos_req_action action, int value)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct pm_qos_constraints * | c | |
struct plist_node * | node | |
enum pm_qos_req_action | action | |
int | value |
221 | spin_lock_irqsave( & pm_qos_lock, flags) |
223 | 如果value恒等于PM_QOS_DEFAULT_VALUE则new_value等于default_value |
229 | 当:action恒等于PM_QOS_REMOVE_REQ |
230 | 从plist移除节点 |
231 | 退出 |
238 | 从plist移除节点 |
240 | 当:action恒等于Add a new request |
244 | 默认 |
250 | pm_qos_set_value(c, curr_value) |
252 | spin_unlock_irqrestore( & pm_qos_lock, flags) |
255 | 如果prev_value不等于curr_value则 |
256 | ret等于1 |
257 | 如果notifiers则blocking_notifier_call_chain(notifiers, (unsignedlong)curr_value, NULL) |
261 | 否则 |
262 | ret等于0 |
264 | 返回:ret |
名称 | 描述 |
---|---|
__pm_qos_update_request | |
pm_qos_add_request | pm_qos_add_request - inserts new qos request into the list*@req: pointer to a preallocated handle*@pm_qos_class: identifies which list of qos request to use*@value: defines the qos request* This function inserts a new entry in the pm_qos_class list of |
pm_qos_update_request_timeout | pm_qos_update_request_timeout - modifies an existing qos request temporarily.*@req : handle to list element holding a pm_qos request to use*@new_value: defines the temporal qos request*@timeout_us: the effective duration of this qos request in usecs. |
pm_qos_remove_request | pm_qos_remove_request - modifies an existing qos request*@req: handle to request list element* Will remove pm qos request from the list of constraints and* recompute the current target value for the pm_qos_class. Call this* on slow code paths. |
freq_qos_apply | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |