Newsgroups: comp.os.minix Path: utzoo!utgpu!watserv1!maytag!watcsc!sean From: sean@watcsc.waterloo.edu (Sean Goggin) Subject: Re: Revision of PC 1.5.10 ps.c Message-ID: <1990Sep9.000656.25775@watcsc.waterloo.edu> Summary: add /proc Reply-To: sean@watcsc.waterloo.edu (Sean Goggin) Organization: University of Waterloo Computer Science Club References: <4217@crash.cts.com> <7468@star.cs.vu.nl> Date: Sun, 9 Sep 90 00:06:56 GMT In article jpc@fctunl.rccn.pt (Jose Pina Coelho) writes: >>In article <7468@star.cs.vu.nl> ast@cs.vu.nl (Andy Tanenbaum) writes: >> More system calls? Bah humbug (except for those mandated by POSIX). > >Then we could have the structure that is in the ps database inserted >at the beggining of the kernel, then, when you boot the system, the >kernel initialization would get the relevant information in place. >This way ps would read /dev/kmem to get position of the tables. Better I think is /dev/usermemory that you can mount on /proc and use ls to see processes or ps shared text could be shown as a hard links total 654 -rw-r--r-- 1 sean minix 55800 Sep 5 16:11 D#PID1 -rw-r--r-- 2 sean minix 29089 Sep 5 16:11 T#PID1 -rw-r--r-- 1 sean minix 15901 Aug 25 00:03 S#PID1 -rw-r--r-- 2 sean minix 55800 Sep 5 16:11 D#PID2 -rw-r--r-- 1 sean minix 29089 Sep 5 16:11 T#PID2 -rw-r--r-- 1 sean minix 15901 Aug 25 00:03 S#PID2 -- SADGoggin...SEC:001................+1.519.725.2289....sean@watcsc.waterloo.edu..