/proc guidelines and sysctl

Strohm Thomas (FV/SLD) * Thomas.Strohm en de.bosch.com
Lun Ene 31 12:35:40 CST 2000


Hi!

Sorry, I picked up this discussion a bit late...

> Are you just blind to the neverending
format/compatiblity/parsing/performance
> problems the whole idea behing /proc induces inherently?

IMHO the only serious point against /proc in the discussion sysctl() vs.
/proc
was the formatting issue (performance set aside). 

I think this is a very serious point and could be circumvented by
introducing 
alternative *binary* file formats. For instance:
meminfo would be paralleled by a binary file meminfo.b and a struct
proc_meminfo 
{...} in <linux/proc_fmts.h>. Then there would be no problem with parsing
anymore.
And the advantage to be able to access the meminfo information in readable
form
via the VFS would be retained.

The compatibility problem is also a non-issue if the get_*() functions are
changed synchronously with the corresponding struct in proc_fmts.h as all
the applications are available in source code :-). Aren't they?

Thomas Strohm

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



Más información sobre la lista de distribución Ayuda