Date: Thu, 24 May 2001 22:12:12 -0600 From: Warner Losh <imp@harmony.village.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: <200105250412.f4P4CCE60046@harmony.village.org> In-Reply-To: Your message of "Wed, 23 May 2001 19:19:10 %2B0200." <9639.990638350@critter> References: <9639.990638350@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <9639.990638350@critter> Poul-Henning Kamp writes: : >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... Only if you want a packed name space. VMS for years just bumped a counter that wrapped at 65k. It then checked for collisions. There was also a count of the number of PTYs so that you'd know if you'd hit the pathological case of all 65k PTYs in use :-). Warner 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?200105250412.f4P4CCE60046>