Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Allow fill_kproc2() to be used by more than sysctl.



details:   https://anonhg.NetBSD.org/src/rev/d60251e6bdd3
branches:  trunk
changeset: 330495:d60251e6bdd3
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sat Jul 12 09:57:25 2014 +0000

description:
Allow fill_kproc2() to be used by more than sysctl.

diffstat:

 sys/kern/kern_proc.c |  7 +++----
 sys/sys/sysctl.h     |  3 ++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 67e478f13b7a -r d60251e6bdd3 sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Sat Jul 12 05:30:33 2014 +0000
+++ b/sys/kern/kern_proc.c      Sat Jul 12 09:57:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.192 2014/02/25 18:30:11 pooka Exp $    */
+/*     $NetBSD: kern_proc.c,v 1.193 2014/07/12 09:57:25 njoly 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.192 2014/02/25 18:30:11 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.193 2014/07/12 09:57:25 njoly Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kstack.h"
@@ -212,7 +212,6 @@
 
 static int sysctl_doeproc(SYSCTLFN_PROTO);
 static int sysctl_kern_proc_args(SYSCTLFN_PROTO);
-static void fill_kproc2(struct proc *, struct kinfo_proc2 *, bool);
 
 /*
  * The process list descriptors, used during pid allocation and
@@ -2200,7 +2199,7 @@
 /*
  * Fill in a kinfo_proc2 structure for the specified process.
  */
-static void
+void
 fill_kproc2(struct proc *p, struct kinfo_proc2 *ki, bool zombie)
 {
        struct tty *tp;
diff -r 67e478f13b7a -r d60251e6bdd3 sys/sys/sysctl.h
--- a/sys/sys/sysctl.h  Sat Jul 12 05:30:33 2014 +0000
+++ b/sys/sys/sysctl.h  Sat Jul 12 09:57:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.h,v 1.212 2014/06/13 15:45:05 joerg Exp $       */
+/*     $NetBSD: sysctl.h,v 1.213 2014/07/12 09:57:25 njoly Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -1143,6 +1143,7 @@
  * used in more than just sysctl
  */
 void   fill_eproc(struct proc *, struct eproc *, bool);
+void   fill_kproc2(struct proc *, struct kinfo_proc2 *, bool);
 
 /*
  * subsystem setup



Home | Main Index | Thread Index | Old Index