Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cmd_attr_tgid

Proto:static int cmd_attr_tgid(struct genl_info *info)

Type:int

Parameter:

TypeParameterName
struct genl_info *info
519  size = taskstats_packet_size()
521  rc = prepare_reply(info, TASKSTATS_CMD_NEW, & rep_skb, size)
522  If rc < 0 Then Return rc
525  rc = -EINVAL
526  tgid = la_get_u32 - return payload of u32 attribute*@nla: u32 netlink attribute
527  stats = mk_reply(rep_skb, TASKSTATS_TYPE_TGID, tgid)
528  If Not stats Then Go to err
531  rc = fill_stats_for_tgid(tgid, stats)
532  If rc < 0 Then Go to err
534  Return Send taskstats data in @skb to listener with nl_pid @pid
535  err :
536  lmsg_free - free a netlink message*@skb: socket buffer of netlink message
537  Return rc
Caller
NameDescribe
taskstats_user_cmd