函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_qos_power_open

函数原型:static int pm_qos_power_open(struct inode *inode, struct file *filp)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct file *filp
561  pm_qos_class等于find_pm_qos_object_by_minor(iminor(inode))
562  如果pm_qos_class大于等于PM_QOS_CPU_DMA_LATENCY
563  req等于分配内存并置零
564  如果非req则返回:负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  返回:0
572  返回:负EPERM