Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parse

Proto:static int parse(struct nlattr *na, struct cpumask *mask)

Type:int

Parameter:

TypeParameterName
struct nlattr *na
struct cpumask *mask
343  If (na == NULL) Then Return 1
345  len = la_len - length of payload*@nla: netlink attribute
346  If len > Maximum length of a cpumask that can be specified in* the TASKSTATS_CMD_ATTR_REGISTER/DEREGISTER_CPUMASK attribute Then Return -E2BIG
348  If len < 1 Then Return -EINVAL
350  data = Allocation memory
351  If Not data Then Return -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 = pulist_parse - extract a cpumask from a user string of ranges*@buf: the buffer to extract from*@dstp: the cpumask to set.* Returns -errno, or 0 for success.
355  kfree(data)
356  Return ret
Caller
NameDescribe
cmd_attr_register_cpumask
cmd_attr_deregister_cpumask