lkml.org 
[lkml]   [1998]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: ARMS WAVING!!! Proposal to fix /proc dainbrammage.
Date
From

>+-----
>| Is all the info in /proc truly available with syscalls?
>| Seriously, I'm asking out of pure curiousity as I'm not an expert
>| in this area whatsoever. I'd like to get at the information in
>| /proc/cpuinfo, and some other files in /proc, but if there is a
>| direct way that doesn't use /proc, I'd sure like to know what it
>| is and how to do it. Granted of course that I haven't bothered
>+--->8
>
>The old-fashioned way: arm yourself with the kernel symbol table and grovel
>around in /dev/kmem. May you have joy of it. IMHO, /proc is light-years
>ahead of that crap.

Yes and no. /proc is fine as it is for *processes*. It's the other
crap that's the problem, and that's what should be available via
sysctl(). I kind of like the idea of having a /sysinfo for the
human readable form, too:

mv /proc/[a-z]* /sysinfo

Tet

--
Politicians should read SF, not westerns and detective stories. - A.C.Clarke
--------------------+--------------+----------------------------------------
tethys@ml.com | Micro$oft: | Linux, the choice of a GNU generation.
tet@astradyne.co.uk | Just say no! | See http://www.uk.linux.org for details

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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