Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!sm.unisys.com!csun!polyslo!khearn From: khearn@polyslo.CalPoly.EDU (Keith Hearn) Newsgroups: comp.os.minix Subject: need help reading data from /dev/kmem Keywords: nlist() /dev/kmem Message-ID: <7107@polyslo.CalPoly.EDU> Date: 18 Jan 89 05:37:25 GMT Reply-To: khearn@polyslo.CalPoly.EDU (Keith Hearn) Organization: Cal Poly State University -- San Luis Obispo Lines: 18 I am interested in possibly adding system activity reporting to the MINIX kernel ( What's system activity? See the system V sar man page, or the BSD vmstat and mpstat man pages). Unfortunately, to do so, I need to be able to read data from /dev/kmem. In UNIX i would use nlist() to get the addresses of the variables I want, then do an open(), an lseek(), and a read(). Simple. However, MINIX (at least 1.2) has no nlist() system call. I'm not even sure that there is a namelist in /dev/kmem. Has anyone out there managed to read data from /dev/kmem? How would you suggest I go about trying it? Thanks, Keith Hearn khearn@polyslo.calpoly.edu