函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Send taskstats data in @skb to listeners registered for @cpu's exit data

函数原型:static void send_cpu_listeners(struct sk_buff *skb, struct listener_list *listeners)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
struct listener_list *listeners
116  genlhdr等于消息有效载荷
118  skb_cur等于skb
119  reply等于gennlmsg_data - head of message payload*@gnlh: genetlink message header
120  delcount等于0
122  genlmsg_end - Finalize a generic netlink message*@skb: socket buffer the message is stored in*@hdr: user specific header
124  rc等于0
125  lock for reading
127  skb_next = NULL
128  如果非检查是否为链表尾
129  skb_next等于复制sk_buff
130  如果非skb_next退出
133  rc等于genlmsg_unicast - unicast a netlink message*@skb: netlink message as socket buffer*@portid: netlink portid of the destination socket
134  如果rc恒等于负ECONNREFUSED
135  valid等于0
136  delcount自加
138  skb_cur等于skb_next
140  lease a read lock
142  如果skb_cur释放netlink消息
145  如果非delcount则返回
149  lock for writing
151  如果非valid
152  删除链表项
153  kfree(s)
156  lease a write lock
调用者
名称描述
taskstats_exitSend pid data out on exit