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

NAME

6       gen_new_estimator - create a new rate estimator
7

SYNOPSIS

9       int gen_new_estimator(struct gnet_stats_basic_packed * bstats,
10                             struct gnet_stats_basic_cpu __percpu * cpu_bstats,
11                             struct net_rate_estimator __rcu ** rate_est,
12                             spinlock_t * stats_lock, seqcount_t * running,
13                             struct nlattr * opt);
14

ARGUMENTS

16       bstats
17           basic statistics
18
19       cpu_bstats
20           bstats per cpu
21
22       rate_est
23           rate estimator statistics
24
25       stats_lock
26           statistics lock
27
28       running
29           qdisc running seqcount
30
31       opt
32           rate estimator configuration TLV
33

DESCRIPTION

35       Creates a new rate estimator with bstats as source and rate_est as
36       destination. A new timer with the interval specified in the
37       configuration TLV is created. Upon each interval, the latest statistics
38       will be read from bstats and the estimated rate will be stored in
39       rate_est with the statistics lock grabed during this period.
40
41       Returns 0 on success or a negative error code.
42
44Kernel Hackers Manual 3.10         June 2019              GEN_NEW_ESTIMATOR(9)
Impressum