Subject: Re: new kpi proposal, sysdisk(9)
To: matthew green <mrg@eterna.com.au>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 12/27/2006 23:32:44
matthew green wrote:
> good stuff. just one comment.
>
>
> TAILQ_HEAD(, sysdisk) sysdisklist;
>
> /*
> * Initialize the system disk subsystem.
> */
> static int
> sysdisk_init(void)
> {
> TAILQ_INIT(&sysdisklist);
>
> return (0);
> }
>
>
> any reason not to use TAILQ_HEAD_INITIALIZER?
no; you're right that we should use it, it'll save us the need to
have sysdisk_init() and the run-once stuff.
-e.