Date: Wed, 23 May 2001 23:03:59 -0700 From: Peter Wemm <peter@wemm.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Brian Somers <brian@Awfulhak.org>, freebsd-arch@FreeBSD.ORG Subject: Re: RFC: unit_list routines Message-ID: <20010524060359.3746D380C@overcee.netplex.com.au> In-Reply-To: <9639.990638350@critter>
index | next in thread | previous in thread | raw e-mail
Poul-Henning Kamp wrote:
> In message <200105231716.NAA31092@khavrinen.lcs.mit.edu>, Garrett Wollman wri
te
> s:
> ><<On Wed, 23 May 2001 18:02:09 +0100, Brian Somers <brian@Awfulhak.org> said
:
> >
> >>> How does newbus allocate/manage unit numbers ?
> >
> >> I don't think it does. The only way to find out what's in use
> >> (AFAIK) is by looking at every specinfo in dev_hash....
> >
> >You're looking in the wrong place again.
> >
> >This may have changed, but my recollection is that new-bus looks for
> >the greatest allocated unit number and then takes the next one. Since
> >this is initialization code, the fact that this is O(n^2) is of no
> >consequence.
>
> For pty and tun devices, this assumption may not hold...
.. which have *nothing* to do with newbus. rman is a completely different
animal.
Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010524060359.3746D380C>
