函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parse

函数原型:static int parse(struct nlattr *na, struct cpumask *mask)

返回类型:int

参数:

类型参数名称
struct nlattr *na
struct cpumask *mask
343  如果(na == NULL)则返回:1
345  len等于有效载荷的长度
346  如果len大于Maximum length of a cpumask that can be specified in* the TASKSTATS_CMD_ATTR_REGISTER/DEREGISTER_CPUMASK attribute则返回:负E2BIG
348  如果len小于1则返回:负EINVAL
350  data等于开辟内存
351  如果非data则返回:负ENOMEM
353  la_strlcpy - Copy string attribute payload into a sized buffer*@dst: where to copy the string to*@nla: attribute to copy the string from*@dstsize: size of destination buffer* Copies at most dstsize - 1 bytes into the destination buffer.
354  ret等于从用户空间中提取CPU信息
355  kfree(data)
356  返回:ret
调用者
名称描述
cmd_attr_register_cpumask
cmd_attr_deregister_cpumask