Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mk_reply

Proto:static struct taskstats *mk_reply(struct sk_buff *skb, int type, unsigned int pid)

Type:struct taskstats

Parameter:

TypeParameterName
struct sk_buff *skb
inttype
unsigned intpid
364  aggr = If type == TASKSTATS_TYPE_PID Then TASKSTATS_TYPE_AGGR_PID Else TASKSTATS_TYPE_AGGR_TGID
368  na = la_nest_start_noflag - Start a new level of nested attributes*@skb: socket buffer to add attributes to*@attrtype: attribute type of container* This function exists for backward compatibility to use in APIs which never
369  If Not na Then Go to err
372  If la_put - Add a netlink attribute to a socket buffer*@skb: socket buffer to add attribute to*@attrtype: attribute type*@attrlen: length of attribute payload*@data: head of attribute payload* Returns -EMSGSIZE if the tailroom of the skb is insufficient to < 0 Then
373  la_nest_cancel - Cancel nesting of attributes*@skb: socket buffer the message is stored in*@start: container attribute* Removes the container attribute and including all nested* attributes. Returns -EMSGSIZE
374  Go to err
376  ret = la_reserve_64bit - reserve room for attribute on the skb and align it*@skb: socket buffer to reserve room on*@attrtype: attribute type*@attrlen: length of attribute payload*@padattr: attribute type for the padding* Adds a netlink attribute header to a
378  If Not ret Then
379  la_nest_cancel - Cancel nesting of attributes*@skb: socket buffer the message is stored in*@start: container attribute* Removes the container attribute and including all nested* attributes. Returns -EMSGSIZE
380  Go to err
382  la_nest_end - Finalize nesting of attributes*@skb: socket buffer the attributes are stored in*@start: container attribute* Corrects the container attribute header to include the all* appeneded attributes.* Returns the total data length of the skb.
384  Return la_data - head of payload*@nla: netlink attribute
385  err :
386  Return NULL
Caller
NameDescribe
cmd_attr_pid
cmd_attr_tgid
taskstats_exitSend pid data out on exit