Messages in this thread | | | Subject | Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage. | Date | Wed, 28 Oct 1998 10:27:18 +0000 | From | Tethys <> |
| |
>+----- >| 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/
| |