Question abt /etc/crash & proc struct

Joseph Berry berry at socrates.umd.edu
Sat Jun 22 08:07:03 AEST 1991


Melinda and everyone else...

I got a very nice answer from an IBM software representative in Munich that
understood and told me the solution to my problem.  On other UNIXs, accessing
any area in the kernel can be done by simply doing an lseek followed by a
read of the structure of interest.  I had the address of the PROC structure
from the nlist procedure (indirect, of course).  That address was BIG.  Lseek
failed, /etc/crash failed (when using 'od' as opposed to the formatted
proc output).  

I finally found the answer both by Werner's assistance and by use of 
infoexplorer (although the function I wanted wasn't exactly documented 
as it should have been).  The key was use of procedure 'readx'.  Lseek cannot
access an address that is in the address space above 2 gigabytes; my pointer
was out there.  For that, you must use readx.  Something to remember when
you find yourself needing direct access of that table <GRIN>.  THanks to
everyone for their suggestions.

Joe Berry
 



More information about the Comp.unix.aix mailing list