Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepare_reply

Proto:static int prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, size_t size)

Type:int

Parameter:

TypeParameterName
struct genl_info *info
u8cmd
struct sk_buff **skbp
size_tsize
78  skb = genlmsg_new - Allocate a new generic netlink message*@payload: size of the message payload*@flags: the type of memory to allocate.
79  If Not skb Then Return -ENOMEM
82  If Not info Then
83  seq = this_cpu_inc_return(taskstats_seqnum) - 1
85  reply = genlmsg_put(skb, 0, seq, & family, 0, cmd)
86  Else reply = genlmsg_put_reply - Add generic netlink header to a reply message*@skb: socket buffer holding the message*@info: receiver info*@family: generic netlink family*@flags: netlink message flags*@cmd: generic netlink command* Returns pointer to user specific
88  If (reply == NULL) Then
89  lmsg_free - free a netlink message*@skb: socket buffer of netlink message
90  Return -EINVAL
93  skbp = skb
94  Return 0
Caller
NameDescribe
cgroupstats_user_cmd
cmd_attr_pid
cmd_attr_tgid
taskstats_exitSend pid data out on exit