Subject: Re: Initialising pools using link sets
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 04/26/2004 02:30:10
YAMAMOTO Takashi wrote:
> > You can still dynamically initialize a pool, you don't have to use the
> > POOL_INIT() macro.
> >
> > Because of this, I think POOL_INIT() is fine.
>
> sorry, i don't understand your point.
> why _INIT is better if there's another way to initialize a pool?
The original reason for making POOL_INIT was that I wanted to poolify
a few stuctures, but that there was no convenient place to add the
pool_init calls. Without POOL_INIT I would have had to invent a new
function that init_main() called whose sole purpose would have been to
call pool_init().
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/