1GNET_STATS_START_COP(9)        Linux Networking        GNET_STATS_START_COP(9)
2
3
4

NAME

6       gnet_stats_start_copy_compat - start dumping procedure in compatibility
7       mode
8

SYNOPSIS

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);
14

ARGUMENTS

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

DESCRIPTION

35       Initializes the dumping handle, grabs the statistic lock and appends an
36       empty TLV header to the socket buffer for use a container for all other
37       statistic TLVS.
38
39       The dumping handle is marked to be in backward compatibility mode
40       telling all gnet_stats_copy_XXX functions to fill a local copy of
41       struct tc_stats.
42
43       Returns 0 on success or -1 if the room in the socket buffer was not
44       sufficient.
45
47Kernel Hackers Manual 2.6.       November 2011         GNET_STATS_START_COP(9)
Impressum