Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pm_qos_power_read

Proto:static ssize_t pm_qos_power_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
char __user *buf
size_tcount
loff_t *f_pos
592  req = needed for tty driver, and maybe others
594  If Not req Then Return -EINVAL
596  If Not pm_qos_request_active(req) Then Return -EINVAL
599  spin_lock_irqsave( & pm_qos_lock, flags)
600  value = locked internal variant
601  spin_unlock_irqrestore( & pm_qos_lock, flags)
603  Return simple_read_from_buffer(buf, count, f_pos, & value, sizeof(s32))