Subject: Re: root device
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-kern
Date: 02/09/2003 13:39:15
manu@netbsd.org said:
> Having a global pointing to the root device is probably the right way,
> 

How about
TAILQ_FIRST(&alldevs)
???
If you are paranoid, you could also walk the list and check for
dv_parent == NULL.

best regards
Matthias