Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 18:02:09 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Brian Somers <brian@Awfulhak.org>, Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, freebsd-arch@FreeBSD.ORG, brian@Awfulhak.org
Subject:   Re: RFC: unit_list routines 
Message-ID:  <200105231702.f4NH29F07183@hak.lan.Awfulhak.org>
In-Reply-To: Message from Poul-Henning Kamp <phk@critter.freebsd.dk>  of "Wed, 23 May 2001 18:54:31 %2B0200." <3487.990636871@critter> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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....

> -- 
> 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.

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !



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?200105231702.f4NH29F07183>