Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!kksys!edgar!brainiac!jrc From: jrc@brainiac.mn.org (Jeffrey Comstock) Newsgroups: comp.unix.programmer Subject: Re: Getting process status Keywords: VMUNIX Message-ID: <1991Apr12.060916.20596@brainiac.mn.org> Date: 12 Apr 91 06:09:16 GMT References: <7269@bgsuvax.UUCP> Organization: Sewer of Source Code Lines: 21 In article <7269@bgsuvax.UUCP> pthonda@bgsuvax.UUCP (Killer B) writes: > > >Hi, I am trying to read the status of all the processes information in the system. >I came to know that the file 'vmunix' contains a pointer to a location in file >'kmem'.This location has another pointer to the starting of process structures in >kmem, which would give me process information. Can anybody tell me how to get the >pointer in the file 'vmunix' . Should I use nlist, if so , in what way. > >Thanx in advance . > >Pratap Using SunOS, do a 'man -k kvm'. There are some nice routines for dealing with the kernel: kvm_getproc, kvm_nextproc, kvm_setproc (3K) - read system process structures kvm_read, kvm_write (3K) copy data to or from a kernel image or running system Jeff