svn commit: r294475 - head/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Thu Jan 21 17:56:59 UTC 2016


On Wed, Jan 20, 2016 at 05:40:03PM -0800, Ravi Pokala wrote:
R> ISTR there's an API for creating a batch of counters; that might be cleaner than creating a dozen+ individually?

There are some. An array macros are in sys/counter.h itself. The network
stack has magic macros that allow you to use array macros on structures,
assuming all members are counter(9)s. This stuff from the network stack
can be generalized.

-- 
Totus tuus, Glebius.


More information about the svn-src-head mailing list