Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pm_qos_debug_show

Proto:static int pm_qos_debug_show(struct seq_file *s, void *unused)

Type:int

Parameter:

TypeParameterName
struct seq_file *s
void *unused
142  qos = private
147  tot_reqs = 0
148  active_reqs = 0
150  If IS_ERR_OR_NULL(qos) Then
151  pr_err("%s: bad qos param!\n", __func__)
152  Return -EINVAL
154  c = constraints
155  If IS_ERR_OR_NULL(c) Then
156  pr_err("%s: Bad constraints on qos?\n", __func__)
157  Return -EINVAL
161  spin_lock_irqsave( & pm_qos_lock, flags)
162  If plist_head_empty - return !0 if a plist_head is empty*@head: &struct plist_head pointer Then
163  seq_puts(s, "Empty!\n")
164  Go to out
169  type = "Minimum"
170  Break
172  type = "Maximum"
173  Break
174  Case type == PM_QOS_SUM
175  type = "Sum"
176  Break
177  Default
178  type = "Unknown"
182  state = "Default"
184  If prio != default_value Then
185  active_reqs++
186  state = "Active"
188  tot_reqs++
189  seq_printf(s, "%d: %d: %s\n", tot_reqs, prio, state)
193  seq_printf(s, "Type=%s, Value=%d, Requests: active=%d / total=%d\n", type, locked internal variant , active_reqs, tot_reqs)
196  out :
197  spin_unlock_irqrestore( & pm_qos_lock, flags)
198  Return 0