Re: An alternative way of populating /proc

From: H. Peter Anvin (hpa@transmeta.com)
Date: Fri Apr 14 2000 - 16:01:46 EST


Jamie Lokier wrote:
>
> Matt Aubury wrote:
> > So it seems that the vast majority of cases can be boiled down to just
> > whether or not root is allowed to write.
>
> Such wacky syntax as "%<d" (400), "%>d" (600) and "%644d" perhaps.
>
> > As for data types, integer I/O (decimal and hex) seems to be very
> > common. String output is also frequent. We could potentially also do
> > range checked integers, string input, arrays... How useful would these
> > be? We'll still have the ability to pass function pointers for output,
> > and I'll be adding support for generic input too.
>
> There is already a syntax defined for range checking via the MODULE_PARM
> macro. Can it be shared?
>

I have to say, this stuff still basically presumes free-form text
output, which is great for humans (but even then can be taken too far,
e.g. /proc/pci), but terrible for machines...

        -hpa

-
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/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:25 EST