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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to