Re: /proc/sys, parport... (was: shm fs mount)

From: H. Peter Anvin (hpa@zytor.com)
Date: Mon Jun 12 2000 - 12:31:27 EST


Followup to: <20000611220049.A11054@metastasis.f00f.org>
By author: Chris Wedgwood <cw@f00f.org>
In newsgroup: linux.dev.kernel
>
> On the other hand, it would be good to expose them somewhere
> (perhaps under /proc/fs) for debugging purposes. Plus, it may
> prove useful beyond that.
>
> /proc/sys/fs/mounts ?
>

People, *PLEASE* don't put things in /proc/sys that don't follow the
sysctl() formatting conventions. parport is an example:

: tazenda 5 ; cat /proc/sys/dev/parport/parport0/hardware
base: 0x378 (0x778)
irq: 7
dma: 3
modes: PCSPP,TRISTATE,EPP,ECP,DMA

These are individual data items and should have different files.

/proc/sys/kernel/printk is another example (using a fixed-size array
for what should be four named data items.)

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

- 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 : Thu Jun 15 2000 - 21:00:26 EST