From root@io.yi.org Sun Oct 31 21:28:23 1999
Return-Path: <root@io.yi.org>
Received: from io.yi.org (24.66.174.118.bc.wave.home.com [24.66.174.118])
	by hub.freebsd.org (Postfix) with ESMTP id 5E30015258
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 31 Oct 1999 21:27:56 -0800 (PST)
	(envelope-from root@io.yi.org)
Received: by io.yi.org (Postfix, from userid 0)
	id 53AFC1FD6; Sun, 31 Oct 1999 21:27:57 -0800 (PST)
Message-Id: <19991101052757.53AFC1FD6@io.yi.org>
Date: Sun, 31 Oct 1999 21:27:57 -0800 (PST)
From: jake@checker.org
Sender: root@io.yi.org
Reply-To: jake@checker.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: convert proc.p_peers to a queue(3) LIST<Synopsis of the problem (one line)>
X-Send-Pr-Version: 3.2

>Number:         14639
>Category:       kern
>Synopsis:       convert proc.p_peers to a queue(3) LIST
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 31 21:30:00 PST 1999
>Closed-Date:    Sat Jun 9 16:57:48 PDT 2001
>Last-Modified:  Sat Jun 09 16:58:05 PDT 2001
>Originator:     Jake Burkholder
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

4.0-CURRENT
	

>Description:

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.

	

>How-To-Repeat:

	

>Fix:

Patch available at http://io.yi.org/p_peers.diff

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Nov 7 13:24:41 PST 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sat Jun 9 16:57:48 PDT 2001 
State-Changed-Why:  
Over to originator who can decide whether this is still applicable. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14639 
>Unformatted:
