Date: Thu, 24 May 2001 11:03:27 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Brian Somers <brian@Awfulhak.org> Cc: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, <freebsd-arch@FreeBSD.ORG> Subject: Re: RFC: unit_list routines Message-ID: <Pine.BSF.4.33.0105241102300.58788-100000@herring.nlsystems.com> In-Reply-To: <200105231944.f4NJiXF09637@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 May 2001, Brian Somers wrote: > > > > Using bits when there are large numbers of units gets awkward. > > > > > > Just wrap it in macros. I almost posted an implementation with my > > > last message, but decided that since it was so trivial it would be > > > almost insulting for me to do so. > > > > Not true - I'm too thick skinned to be insulted :oI > > > > I'll look at a macro implementation. > > Ok, I've thought about this :-/ I don't think it's practical to > do this with bits if someone does > > # ppp -unit 16777215 > > I then have to go off and allocate an array of 0x7fffff bytes just to > record the fact that someone's using a silly unit number. > > I think this must be done as a sparce set of ranges.... ie, my > original idea seems to still stand. The resource manager implementation would handle this efficiently. It is pretty good at managing large sparse ranges (such as device memory maps). -- 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.0105241102300.58788-100000>