Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern comment
details: https://anonhg.NetBSD.org/src/rev/f1ab8000919e
branches: trunk
changeset: 778792:f1ab8000919e
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Apr 13 15:32:15 2012 +0000
description:
comment
diffstat:
sys/kern/kern_lwp.c | 6 +++---
sys/kern/kern_proc.c | 9 +++++++--
2 files changed, 10 insertions(+), 5 deletions(-)
diffs (57 lines):
diff -r 11c512ebe8d1 -r f1ab8000919e sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Fri Apr 13 15:27:13 2012 +0000
+++ b/sys/kern/kern_lwp.c Fri Apr 13 15:32:15 2012 +0000
@@ -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 @@
}
/*
- * 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 -r 11c512ebe8d1 -r f1ab8000919e sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c Fri Apr 13 15:27:13 2012 +0000
+++ b/sys/kern/kern_proc.c Fri Apr 13 15:32:15 2012 +0000
@@ -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 @@
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)
{
Home |
Main Index |
Thread Index |
Old Index