> I think I'm going to stick my head out and say that sysctl() calls to get
> the kernel information are the best way to go.
> I'm sick of writing stupid parsers to read the /proc stuff.
Didn't somebody write an NFS-type daemon that provided a virtual file
system created by some process? How hard would it be to make /proc with
an approach similar to this - have a process that, when a /proc file is
read, does the appropriate sysctl() and processes the information.
That way, you could probably still NFS export the /proc directory if you
want, have everything look exactly the same as today, but move all the
formatting, and even the decision of what information to export, to a
userspace process.
Am I missing something?
~kzm
-- If I haven't seen further, it is by standing in the footprints of giants- 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/