1GNET_STATS_START_COP(9) Linux Networking GNET_STATS_START_COP(9)
2
3
4
6 gnet_stats_start_copy_compat - start dumping procedure in compatibility
7 mode
8
10 int gnet_stats_start_copy_compat(struct sk_buff * skb, int type,
11 int tc_stats_type, int xstats_type,
12 spinlock_t * lock,
13 struct gnet_dump * d, int padattr);
14
16 skb
17 socket buffer to put statistics TLVs into
18
19 type
20 TLV type for top level statistic TLV
21
22 tc_stats_type
23 TLV type for backward compatibility struct tc_stats TLV
24
25 xstats_type
26 TLV type for backward compatibility xstats TLV
27
28 lock
29 statistics lock
30
31 d
32 dumping handle
33
34 padattr
35 padding attribute
36
38 Initializes the dumping handle, grabs the statistic lock and appends an
39 empty TLV header to the socket buffer for use a container for all other
40 statistic TLVS.
41
42 The dumping handle is marked to be in backward compatibility mode
43 telling all gnet_stats_copy_XXX functions to fill a local copy of
44 struct tc_stats.
45
46 Returns 0 on success or -1 if the room in the socket buffer was not
47 sufficient.
48
50Kernel Hackers Manual 3.10 June 2019 GNET_STATS_START_COP(9)