Path: utzoo!attcan!uunet!vsedev!logan From: logan@vsedev.VSE.COM (James Logan III) Newsgroups: comp.unix.questions Subject: Re: How do you find the user structure? Summary: I have tried... Message-ID: <1279@vsedev.VSE.COM> Date: 13 Dec 88 21:59:05 GMT References: <214@fesk.UUCP> <13232@ncoast.UUCP> <9338@rpp386.Dallas.TX.US> Reply-To: logan@vsedev.VSE.COM (James Logan III) Organization: VSE Software Development Lab Lines: 28 In article <9338@rpp386.Dallas.TX.US> root@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@vsedev.vse.com (703) 892-0002 uucp: ..!uunet!vsedev!logan inet: logan%vsedev.vse.com@uunet.uu.net