Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Ensure pool_head is non static - for "vmstat -i"



details:   https://anonhg.NetBSD.org/src/rev/4abf65e2f7f6
branches:  trunk
changeset: 328976:4abf65e2f7f6
user:      abs <abs%NetBSD.org@localhost>
date:      Sat Apr 26 16:30:05 2014 +0000

description:
Ensure pool_head is non static - for "vmstat -i"

diffstat:

 sys/kern/subr_pool.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 951c7edfb9c4 -r 4abf65e2f7f6 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Sat Apr 26 14:55:43 2014 +0000
+++ b/sys/kern/subr_pool.c      Sat Apr 26 16:30:05 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.201 2014/02/17 20:40:06 para Exp $     */
+/*     $NetBSD: subr_pool.c,v 1.202 2014/04/26 16:30:05 abs Exp $      */
 
 /*-
  * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.201 2014/02/17 20:40:06 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.202 2014/04/26 16:30:05 abs Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -67,8 +67,8 @@
  * an internal pool of page headers (`phpool').
  */
 
-/* List of all pools */
-static TAILQ_HEAD(, pool) pool_head = TAILQ_HEAD_INITIALIZER(pool_head);
+/* List of all pools. Non static as needed by 'vmstat -i' */
+TAILQ_HEAD(, pool) pool_head = TAILQ_HEAD_INITIALIZER(pool_head);
 
 /* Private pool for page header structures */
 #define        PHPOOL_MAX      8



Home | Main Index | Thread Index | Old Index