Re: Suggested dual human/binary interface for proc/devfs

From: G. Allen Morris III (gam3@groucho.ixlabs.com)
Date: Tue Apr 11 2000 - 00:35:59 EST


>>>George Bonser said:
> On Mon, 10 Apr 2000, Mike Porter wrote:
>
> I also like the idea of having two interfaces ... one where you can go
> completely down the tree and get the value of each item. This is
> particularly useful for places where you need to write something like a 0
> or a 1 AND having a "file" that gives the output of everything below it in
> the tree in the above format. I suggest a name of dump for the file. As an
> example, /proc/sys/net/ipv4/conf on my system might look like:
>
> ls -l /proc/sys/net/ipv4/conf
>
> -r-xr-xr-x 2 root root 0 Apr 10 20:59 dump
> dr-xr-xr-x 2 root root 0 Apr 10 20:59 all
> dr-xr-xr-x 2 root root 0 Apr 10 20:59 default
> dr-xr-xr-x 2 root root 0 Apr 10 20:59 eth0
> dr-xr-xr-x 2 root root 0 Apr 10 20:59 lo

I would suggest that the dump file NOT be called `dump', maybe
`.dump' would be a better choice.

-r-xr-xr-x 2 root root 0 Apr 10 20:59 .dump
dr-xr-xr-x 2 root root 0 Apr 10 20:59 all
dr-xr-xr-x 2 root root 0 Apr 10 20:59 default
dr-xr-xr-x 2 root root 0 Apr 10 20:59 dump
dr-xr-xr-x 2 root root 0 Apr 10 20:59 eth0
dr-xr-xr-x 2 root root 0 Apr 10 20:59 lo

cat .dump

> might produce this:
>
> conf {
> all {
> accept_redirects=1
> accept_source_route=0
> bootp_relay=0
> ...
> }
> default {
> accept_redirects=1
> accept_source_route=0
> bootp_relay=0
> ...
> }
> }
>

---------------------------------
       G. Allen Morris III

-
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:15 EST