Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Nov 2000 11:52:35 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: user-space resource information... 
Message-ID:  <200011041952.eA4JqZF11774@mass.osd.bsdi.com>
In-Reply-To: Your message of "Sat, 04 Nov 2000 20:20:49 %2B0100." <3248.973365649@critter> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200011041916.eA4JGsF11659@mass.osd.bsdi.com>, Mike Smith writes:
> >> > Comments?  Here's some sample output; the leading index numbers are 
> >> 
> >> Just 2: why are the irqs displayed in hex?
> >
> >See the following comment regarding "formatting conventions".  There's no
> >easy way for the program to know that they're IRQs (and IMO it shouldn't),
> >so no way to know that they are conventionally formatted in ascii.  Not 
> >sure what to do in the SMP case either, where the "IRQ" is really just a 
> >vector handle.
> 
> If the largest number in the class is < 100, print decimal, otherwise
> hex.

Mmm.  That's not a bad ballpark heuristic, although I'm still leaning 
towards presenting it with the rman.

> I'm wondering if this should have its own program, rather than squat
> in on iostat ?

Adding yet another program for such a trivial fragment of code seems 
kinda silly.  If/when someone uses the other interfaces as well to get 
the full device tree extracted, that probably belongs elsewhere, but 
right now iostat is as good a place as any for this I think.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011041952.eA4JqZF11774>