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.