函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\taskstats.c Create Date:2022-07-27 12:54:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mk_reply

函数原型:static struct taskstats *mk_reply(struct sk_buff *skb, int type, unsigned int pid)

返回类型:struct taskstats

参数:

类型参数名称
struct sk_buff *skb
inttype
unsigned intpid
364  aggr等于如果type恒等于TASKSTATS_TYPE_PIDTASKSTATS_TYPE_AGGR_PID否则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  如果非na则转到:err
372  如果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则
373  取消嵌套的属性
374  转到: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  如果非ret
379  取消嵌套的属性
380  转到:err
382  确定属性的嵌套
384  返回:有效载荷的头部
385  err :
386  返回:NULL
调用者
名称描述
cmd_attr_pid
cmd_attr_tgid
taskstats_exitSend pid data out on exit