Date: Thu, 24 May 2001 11:01:12 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Brian Somers <brian@Awfulhak.org> Cc: Poul-Henning Kamp <phk@critter.freebsd.dk>, Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, <freebsd-arch@FreeBSD.ORG> Subject: Re: RFC: unit_list routines Message-ID: <Pine.BSF.4.33.0105241059570.58788-100000@herring.nlsystems.com> In-Reply-To: <200105231702.f4NH29F07183@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 May 2001, Brian Somers wrote: > > In message <200105231552.f4NFqwF05688@hak.lan.Awfulhak.org>, Brian Somers write > > s: > > > > >I didn't do it that way because the ``usual'' way units are allocated > > >is sequentially. Using bits when there are large numbers of units > > >gets awkward. I figured what was required was something small and > > >simple that would cover the requirements of most/all drivers that > > >need to track their units so that it's easy to find an unused one, > > >and it's easy to allocate/deallocate things. > > > > 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.... Wrong layer. The dev_hash stuff is part of the devfs layer - not all the devices which newbus manages are represented in devfs. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 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?Pine.BSF.4.33.0105241059570.58788-100000>