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