allbery@ncoast.UUCP (Brandon S. Allbery) (04/26/87)
Well, after two years I'm still trying to find out how to read the ublock of a swapped process under System III. I've managed to get this information for System V and now have some useful programs of a Berzerk orientation (like w; I also have a status line that's NOT sysline but IS quite useful [not to deride sysline, I've never seen it, but with csl I have everything I need]). However, System III doesn't use the same process table as System V, so all my work is pretty much useless on ncoast. I therefore ask again: Given a process table entry for System III of a swapped process, how do I find the address in /dev/swap of that process's ublock? I know the answer for System V, but it involves p_swaddr and p_swsize which aren't in the System III proc structure. I've compared the p_addr of a swapped process to the ADDR printed by ps -el, and they're related but I can't get ps's number from p_addr. HELP!!!!! ++Brando -- Brandon S. Allbery {decvax,cbatt,cbosgd}!cwruecmp!ncoast!allbery Tridelta Industries {ames,mit-eddie,talcott}!necntc!ncoast!allbery 7350 Corporate Blvd. necntc!ncoast!allbery@harvard.HARVARD.EDU Mentor, OH 44060 +01 216 255 1080