Subject: Re: Initialising pools using link sets
To: None <tech-kern@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-kern
Date: 04/08/2004 01:07:07
I'm not saying for or against this change, but
simonb@wasabisystems.com writes:
> --- sys/pool.h 9 Jan 2004 19:00:16 -0000 1.42
> +++ sys/pool.h 5 Apr 2004 05:46:56 -0000
...
> +#define POOL_INIT(pp, size, align, align_offset, flags, wchan, palloc) \
> +struct pool pp; \
> +static const struct link_pool_init _link_ ## pp[1] = { \
> + { &pp, size, align, align_offset, flags, wchan, palloc } \
> +}; \
> +__link_set_add_data(pools, _link_ ## pp)
if you use const data, please use __link_set_add_rodata().
--
ITOH Yasufumi