Re: devfs - the missing link

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Mon May 22 2000 - 07:48:42 EST


In <20000522022154.A2147@kent.dyn.ns.ca> Kent Overstreet (kent@kent.dyn.ns.ca) wrote:
> On Mon, May 22, 2000 at 08:08:40PM +1000, Nathan Hand wrote:
>> On Mon, May 22, 2000 at 12:55:04AM -0800, Kent Overstreet wrote:
>> >
>> > Procfs != devfs. Get that through your head first. Let's see what /proc is for:
>> > I see a bunch of dirs for processes, some text files telling me about my system,
>> > and a tree corrisponding to sysctl()s. Those ascii text files are decent for the
>> > admin, but they've never been designed for programs to use them
>>
>> Actually, that's exactly what they were designed for.

> I supposed I should have been clearer - I was talking about files like /proc/devices, cpuinfo,
> filesystems, modules, etc. I've never heard anyone say those were for programs to use -
> most of them are duplicates of ioctl() and sysctl() interfaces.

>From where you come ? It's other way around: /proc/devices, /proc/cpuinfo and
so on are for programs AND humans. Some of them are accessible with horrible
kludges like ioctl() and sysctl() as well.

P.S. It was discussed so many times before @ lkml.

-
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 : Tue May 23 2000 - 21:00:21 EST