Date: Thu, 21 Jan 2016 09:56:56 -0800 From: Gleb Smirnoff <glebius@FreeBSD.org> To: Ravi Pokala <rpokala@mac.com> Cc: Mateusz Guzik <mjg@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r294475 - head/sys/kern Message-ID: <20160121175656.GN1444@FreeBSD.org> In-Reply-To: <0BB9E046-D76D-47CF-9BE6-4888727B7E05@panasas.com> References: <201601210104.u0L143tP098546@repo.freebsd.org> <0BB9E046-D76D-47CF-9BE6-4888727B7E05@panasas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160121175656.GN1444>