lkml.org 
[lkml]   [2002]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ISA slot detection on PCI systems?
On Wed, Jan 02, 2002 at 06:09:26PM -0500, Eric S. Raymond wrote:
> Alan Cox <alan@lxorguk.ukuu.org.uk>:
> > Of course it isnt. cat /proc/dmi executes kernel mode code which is totally
> > priviledged. /sbin/dmidecode executes slightly priviledged code which will

I hope you at least recomment /usr/sbin/dmidecode. Least I hope that isn't
necessary for booting. ;->

> > core dump not crash the box if it misparses the mapped table.
>
> You're thinking inside-out again. Sigh...user privileges. *User* privileges!

It's not just a simple od -c type of output that a post-processor could
decode turn back into binary and decode. The routine would still have to
locate the DMI table, and decode at least the appropriate length of the
table, present that to the output, and then dump the output in hex format
or something. Why risk getting that wrong and screwing up kernel internals
when it can already be done in userspace?

mrc
--
Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.186 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site