Xref: utzoo comp.unix.internals:3026 comp.unix.xenix.misc:244 comp.sys.intel:1742 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!kunkee From: kunkee@ficc.ferranti.com (randy kunkee) Newsgroups: comp.unix.internals,comp.unix.xenix.misc,comp.sys.intel Subject: How to access U area from proc table Message-ID: <8D-B4F1@xds13.ferranti.com> Date: 14 Jun 91 18:42:31 GMT Reply-To: kunkee@ficc.ferranti.com (randy kunkee) Organization: Ferranti International Controls Corporation Lines: 21 I have Intel Xenix 3.5, which is basically a modified system III kernal running on 80286 mode. I'm trying to write a program which will allow me to access the u area for every process running on the system, but there seems to be some magic going on. I expected the ADDR field of ps -l to point directly to the U area, but it does not. Apparently it points to a 7 to 9 byte structure which then points to the U area. This is small structure is what is referenced by proc.p_caddr. Can anybody tell me how to convert this into the actual address of the U area? Then, can you tell me how to convert that into an offset in /dev/mem? -- Randy Kunkee Ferranti International Controls Corporation 12808 W. Airport Blvd. Sugar Land, TX 77478 UUCP: uupsi!ficc!kunkee ph: (713) 274-5132 INTERNET: kunkee@ficc.ferranti.com