lkml.org 
[lkml]   [1997]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: procfs problems
Date
Dan Hollis <goemon@sasami.anime.net> writes:
> Looking at /proc/pci, it got me to thinking about kernel bloat :-) If we
> were to take all the text out of pci.c and put it in an external program
> (call it "pciconfig" or "lspci") and have /proc/pci just output hex
> numbers, we could save several kilobytes off the size of the kernel. It
> would also probably be easier for programs to parse /proc/pci if they
> needed configuration information.

I can only agree !
Entries labels should probably be limited to 8 character (or even 4) with
padding, so they can just as well be considered as a 64bits (or 32bits)
integer constants. The actual text can then be looked up in some kind of
hash-table in /System.map (for example).


Stefan

\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2011 Jasper Spaans