How do you find the user structure?

James Logan III logan at vsedev.VSE.COM
Wed Dec 14 07:59:05 AEST 1988


In article <9338 at rpp386.Dallas.TX.US> root at rpp386.Dallas.TX.US
(The Beach Bum) writes:
# If you ARE on a system where the ublock is not contiguous, you at least

... Like mine...

# should be able to determine the method used to store that one page.

Yeah, sure.  I spent two weeks doing this once.  I finally got
ahold of the sources for the "ps" command and I still can't
determine the method.  (Talk about spaghetti code... Yuck!)

I didn't look at the sources for very long, but it wasn't
immediately apparent.  I'll look at the source again this
weekend maybe and explain the method that my version of
System V uses.

# Look at the page table entries [ god willing ... ], and once you have
# figured out how you got that one page, you should be able to figure out
# how to get the rest of them.

			-Jim


-- 
Jim Logan		logan at vsedev.vse.com
(703) 892-0002		uucp:	..!uunet!vsedev!logan
			inet:	logan%vsedev.vse.com at uunet.uu.net



More information about the Comp.unix.questions mailing list