Move the code that inserts a new process into the allproc list into its
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 May 2006 18:59:51 +0000 (18:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 24 May 2006 18:59:51 +0000 (18:59 +0000)
commit51e64ff26f4f1df2ab01894f3abbf55430af1d98
treebb7c5bf3695e53b65083f86c9c4a23247ed3b780
parent5bf0d9b52e73641625d92e7ad1258c0049e1a0d9
Move the code that inserts a new process into the allproc list into its
own procedure, proc_add_allproc().  Make it MPSAFE.

Integrate pid generation for the new process into proc_add_allproc(), move
all related code from kern_fork.c to kern_proc.c.

Change procfs to use the new allproc scanning function.
sys/kern/kern_fork.c
sys/kern/kern_proc.c
sys/sys/proc.h
sys/vfs/procfs/procfs_vnops.c