Subject: Re: new pid allocation code
To: None <tech-kern@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-kern
Date: 03/13/2003 11:15:10
On Wed, 12 Mar 2003, David Laight wrote:
> > The code below implements a different pid allocation and proc/pgrp
> > lookup algorithm.

I see several changes from lists managed by macros to lists managed by
hand-coded pointer manipulation.  Is this wise?

For example:
> Index: sys/proc.h
  [...]
> -extern struct proclist deadproc;	/* List of dead processes */
> +extern struct proc	*deadprocs;	/* List of dead processes */
  [...]
> Index: kern/kern_exit.c
  [...]
> -	LIST_INSERT_HEAD(&deadproc, p, p_hash);
> +	p->p_dead = deadprocs;
> +	deadprocs = p;

--apb (Alan Barrett)