Bug 14639

Summary: convert proc.p_peers to a queue(3) LIST
Product: Base System Reporter: jake <jake>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description jake 1999-11-01 05:30:00 UTC
The p_peers field of struct proc is currently used as a
'roll your own' linked list to setup linkage for kernel threads.
This is in violation of style(9) as I see no reason why the list
could not be made with the queue(3) LIST macros.
This patch makes p_peers field of struct proc be a LIST_HEAD(, proc)
and adds LIST_ENTRY(proc) p_peerlist.

No functional changes; code in kern_exit.c and kern_fork.c is
made much clearer.

The size of struct proc is increased by 8 bytes.

Fix: 

Patch available at http://io.yi.org/p_peers.diff
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-11-07 21:24:41 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR. 
Comment 2 dd freebsd_committer freebsd_triage 2001-06-10 00:57:48 UTC
State Changed
From-To: open->closed

Over to originator who can decide whether this is still applicable.