Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 19:19:10 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        Brian Somers <brian@Awfulhak.org>, freebsd-arch@FreeBSD.ORG
Subject:   Re: RFC: unit_list routines 
Message-ID:  <9639.990638350@critter>
In-Reply-To: Your message of "Wed, 23 May 2001 13:16:10 EDT." <200105231716.NAA31092@khavrinen.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200105231716.NAA31092@khavrinen.lcs.mit.edu>, Garrett Wollman write
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...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9639.990638350>