Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pm_qos_power_open

Proto:static int pm_qos_power_open(struct inode *inode, struct file *filp)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct file *filp
561  pm_qos_class = find_pm_qos_object_by_minor(iminor(inode))
562  If pm_qos_class >= PM_QOS_CPU_DMA_LATENCY Then
563  req = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
564  If Not req Then Return -ENOMEM
567  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
568  needed for tty driver, and maybe others = req
570  Return 0
572  Return -EPERM