Path: utzoo!attcan!uunet!decwrl!sgi!shinobu!odin!anchor!olson From: olson@anchor.esd.sgi.com (Dave Olson) Newsgroups: comp.sys.sgi Subject: Re: Where is the U area. Keywords: user (U) area, top Message-ID: <1990Oct21.173522.18460@odin.corp.sgi.com> Date: 21 Oct 90 17:35:22 GMT References: Sender: news@odin.corp.sgi.com (Net News) Distribution: comp Organization: Silicon Graphics, Inc. Mountain View, CA Lines: 24 In amoss@SHUM.HUJI.AC.IL (Amos Shapira) writes: | I'm considering porting top(1) to Iris, and from looking at | the work of a local guru who did a port for SunOS I saw that I'll have | to find the U area of each process. | | Now, where is it? I think that knowing the virtual address will | be a good start, but any further info (like how to read the U area | through the proc structure) will be welcomed. The virtual u-area address won't help, you would need to track down the physical address, since the virtual address is the same for all processes. However, if you try 'man syssgi', look at SGI_RDUBLK, which should give you everything you want. Of course, since the u-struct often changes in each release, you many need to re-compile when you get a new release of IRIX. As Vernon mentioned, top is already a part of IRIX 3.3. -- Dave Olson Life would be so much easier if we could just look at the source code.