Subject: Re: What are these references to a /proc directory?
To: None <>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: current-users
Date: 01/10/1997 07:36:32
> I've seen a few references (in /bin/sh's and such) that refer to, and
> are check for things in /proc.  What's its purpose and who do I
> enable it?

/proc is a way of moving processes out into the filesystem namespace.
You enable it with "mount -t procfs procfs /proc" (after making sure
/proc exists, of course), or the equivalent in fstab:

procfs /proc procfs rw 0 0

Operations on processes then become filesystem operations on entities
in /proc.  In many respects this is cleaner than the "old" way; those
of us who hate the proliferation of namespaces and would like to work
back towards "everything's a file" also like it because it furthers
that end.

On the other hand, "everything's a file" is pretty well shot at this
point, both for compatability and because core does not seem to contain
any of this group.  (When I added tickadj to kernfs, I was told in no
uncertain terms that sysctl - yet another gratuitous non-filesystem
namespace, though to be fair one imported from CSRG - was The Right
Way.  I've actually been considering adding sysctl to /kern...though
who knows whether that would go in either.)

					der Mouse

		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B