reading /dev/mem - questions

Dylan Rhodes shark at asylum.SF.CA.US
Tue Nov 20 13:07:28 AEST 1990


	Okay, so now that I have root access and everything, I thought
I'd write my own version of 'w' - that is, a program that tells me
who's on, and what they're doing.

	From what I can gather, w and ps get this information from
reading memory, from /dev/mem and/or /dev/kmem.

Questions:

	- Am I on the right track?

	- What *is* the difference between /dev/mem and /dev/kmem?

	- Does anybody have the source code to a 'w' or 'ps' program
	  that I can peruse?


-- 
-= Dylan Rhodes.  decwrl!asylum!herctec!shark or shark at herctec.com =-
-= I really should be doing something a bit more useful right now. =-



More information about the Comp.unix.questions mailing list