From owner-freebsd-hackers Sat Nov 4 11:50:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-14.dsl.snfc21.pacbell.net [63.202.178.14]) by hub.freebsd.org (Postfix) with ESMTP id 59FE037B4E5 for ; Sat, 4 Nov 2000 11:50:11 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eA4JqZF11774; Sat, 4 Nov 2000 11:52:36 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200011041952.eA4JqZF11774@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Poul-Henning Kamp Cc: hackers@FreeBSD.ORG Subject: Re: user-space resource information... In-reply-to: Your message of "Sat, 04 Nov 2000 20:20:49 +0100." <3248.973365649@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 04 Nov 2000 11:52:35 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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