diff --git a/sys/kern/kern_lwp.c b/sys/kern/kern_lwp.c index 47127f1d313b..61409be2e1d4 100644 --- a/sys/kern/kern_lwp.c +++ b/sys/kern/kern_lwp.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lwp.c,v 1.167 2012/02/19 21:06:51 rmind Exp $ */ +/* $NetBSD: kern_lwp.c,v 1.168 2012/04/13 15:32:43 yamt Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -211,7 +211,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.167 2012/02/19 21:06:51 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.168 2012/04/13 15:32:43 yamt Exp $"); #include "opt_ddb.h" #include "opt_lockdebug.h" @@ -1236,7 +1236,7 @@ lwp_find2(pid_t pid, lwpid_t lid) } /* - * Look up a live LWP within the specified process, and return it locked. + * Look up a live LWP within the specified process. * * Must be called with p->p_lock held. */ diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index a008b15388e5..7da54e37a556 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_proc.c,v 1.182 2012/02/19 21:06:52 rmind Exp $ */ +/* $NetBSD: kern_proc.c,v 1.183 2012/04/13 15:32:15 yamt Exp $ */ /*- * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.182 2012/02/19 21:06:52 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.183 2012/04/13 15:32:15 yamt Exp $"); #ifdef _KERNEL_OPT #include "opt_kstack.h" @@ -741,6 +741,11 @@ proc_alloc(void) return p; } +/* + * proc_alloc_pid: allocate PID and record the given proc 'p' so that + * proc_find_raw() can find it by the PID. + */ + pid_t proc_alloc_pid(struct proc *p) {