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_rate_est * rate_est,
11                             spinlock_t * stats_lock, struct nlattr * opt);
12

ARGUMENTS

14       bstats
15           basic statistics
16
17       rate_est
18           rate estimator statistics
19
20       stats_lock
21           statistics lock
22
23       opt
24           rate estimator configuration TLV
25

DESCRIPTION

27       Creates a new rate estimator with bstats as source and rate_est as
28       destination. A new timer with the interval specified in the
29       configuration TLV is created. Upon each interval, the latest statistics
30       will be read from bstats and the estimated rate will be stored in
31       rate_est with the statistics lock grabed during this period.
32
33       Returns 0 on success or a negative error code.
34

NOTE

36       Called under rtnl_mutex
37
39Kernel Hackers Manual 2.6.         June 2019              GEN_NEW_ESTIMATOR(9)
Impressum