This commit is contained in:
yamt 2012-04-13 15:32:15 +00:00
parent 6e7d55c554
commit ea84519110
2 changed files with 10 additions and 5 deletions

View File

@ -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 <sys/cdefs.h>
__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.
*/

View File

@ -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 <sys/cdefs.h>
__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)
{