Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cmd_attr_pid

Proto:static int cmd_attr_pid(struct genl_info *info)

Type:int

Parameter:

TypeParameterName
struct genl_info *info
490  size = taskstats_packet_size()
492  rc = prepare_reply(info, TASKSTATS_CMD_NEW, & rep_skb, size)
493  If rc < 0 Then Return rc
496  rc = -EINVAL
497  pid = la_get_u32 - return payload of u32 attribute*@nla: u32 netlink attribute
498  stats = mk_reply(rep_skb, TASKSTATS_TYPE_PID, pid)
499  If Not stats Then Go to err
502  rc = fill_stats_for_pid(pid, stats)
503  If rc < 0 Then Go to err
505  Return Send taskstats data in @skb to listener with nl_pid @pid
506  err :
507  lmsg_free - free a netlink message*@skb: socket buffer of netlink message
508  Return rc
Caller
NameDescribe
taskstats_user_cmd