From owner-freebsd-arch Wed May 23 23: 4: 2 2001 Delivered-To: freebsd-arch@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 6EAE537B422 for ; Wed, 23 May 2001 23:03:59 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4O63xM90402 for ; Wed, 23 May 2001 23:03:59 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 3746D380C; Wed, 23 May 2001 23:03:59 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Poul-Henning Kamp Cc: Garrett Wollman , Brian Somers , freebsd-arch@FreeBSD.ORG Subject: Re: RFC: unit_list routines In-Reply-To: <9639.990638350@critter> Date: Wed, 23 May 2001 23:03:59 -0700 From: Peter Wemm Message-Id: <20010524060359.3746D380C@overcee.netplex.com.au> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > In message <200105231716.NAA31092@khavrinen.lcs.mit.edu>, Garrett Wollman wri te > s: > >< 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