函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_qos_power_write

函数原型:static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, size_t count, loff_t *f_pos)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
const char __user *buf
size_tcount
loff_t *f_pos
612  如果count恒等于sizeof(s32)则
613  如果copy_from_user( & value, buf, sizeof(s32))则返回:负EFAULT
615  否则
618  ret等于kstrtos32_from_user(buf, count, 16, & value)
619  如果ret则返回:ret
623  req等于 needed for tty driver, and maybe others
624  pm_qos_update_request - modifies an existing qos request*@req : handle to list element holding a pm_qos request to use*@value: defines the qos request* Updates an existing qos request for the pm_qos_class of parameters along
626  返回:count