Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Send taskstats data in @skb to listeners registered for @cpu's exit data

Proto:static void send_cpu_listeners(struct sk_buff *skb, struct listener_list *listeners)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
struct listener_list *listeners
116  genlhdr = lmsg_data - head of message payload*@nlh: netlink message header
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  If Not list_is_last - tests whether @list is the last entry in list @head*@list: the entry to test*@head: the head of the list Then
129  skb_next = duplicate an sk_buff
130  If Not skb_next Then Break
133  rc = genlmsg_unicast - unicast a netlink message*@skb: netlink message as socket buffer*@portid: netlink portid of the destination socket
134  If rc == -ECONNREFUSED Then
135  valid = 0
136  delcount++
138  skb_cur = skb_next
140  lease a read lock
142  If skb_cur Then lmsg_free - free a netlink message*@skb: socket buffer of netlink message
145  If Not delcount Then Return
149  lock for writing
151  If Not valid Then
152  deletes entry from list
153  kfree(s)
156  lease a write lock
Caller
NameDescribe
taskstats_exitSend pid data out on exit