From owner-freebsd-arch Wed May 23 10:16:23 2001 Delivered-To: freebsd-arch@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 87C7637B43E for ; Wed, 23 May 2001 10:16:20 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id NAA31092; Wed, 23 May 2001 13:16:10 -0400 (EDT) (envelope-from wollman) Date: Wed, 23 May 2001 13:16:10 -0400 (EDT) From: Garrett Wollman Message-Id: <200105231716.NAA31092@khavrinen.lcs.mit.edu> To: Brian Somers Cc: freebsd-arch@FreeBSD.ORG Subject: Re: RFC: unit_list routines In-Reply-To: <200105231702.f4NH29F07183@hak.lan.Awfulhak.org> References: <3487.990636871@critter> <200105231702.f4NH29F07183@hak.lan.Awfulhak.org> 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 < 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. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message