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

This commit is contained in:
njoly 2014-07-12 09:57:25 +00:00
parent a0d0c26c93
commit 5ad0cbf81d
2 changed files with 5 additions and 5 deletions

View File

@ -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 const int maxuprc = MAXUPRC;
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_eproc(struct proc *p, struct eproc *ep, bool zombie)
/*
* 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;

View File

@ -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 @@ typedef int (*sysctlfn)(SYSCTLFN_PROTO);
* 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