home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / programm / 5868 < prev    next >
Encoding:
Text File  |  1993-01-08  |  928 b   |  27 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!paulc
  3. From: paulc@bloom-picayune.mit.edu.mit.edu (Paul Cloke)
  4. Subject: Finding the address of a proc structure under BSD
  5. Message-ID: <1993Jan8.195843.6026@athena.mit.edu>
  6. Sender: news@athena.mit.edu (News system)
  7. Nntp-Posting-Host: plume.mit.edu
  8. Organization: Massachvsetts Institvte of Technology
  9. X-Newsreader: Tin 1.1 PL3
  10. Date: Fri, 8 Jan 1993 19:58:43 GMT
  11. Lines: 14
  12.  
  13.  
  14. Hi,
  15. I want to access some elements of the proc structure (in /usr/include/sys/proc.h
  16. ) in BSD. I think you do this by using nlist(3) to find one process and then
  17. step through a linked list (p_link or p_rlink) until you find the one you want.
  18. I'm not sure firstly whether this the correct method, and if it is which is the
  19. nlist symbol to look at from the kernel?
  20.  
  21.  
  22. Any help or pointers to online references would be appreciated.
  23.  
  24. Paul Cloke
  25.  
  26. (paulc@plume.mit.edu)
  27.