Where is the U area.
Dave Olson
olson at anchor.esd.sgi.com
Mon Oct 22 03:35:22 AEST 1990
In <amoss.656333282 at shum> amoss at 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.
More information about the Comp.sys.sgi
mailing list