diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-23 06:54:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-23 06:54:13 +0000 |
commit | 900a32c65e74f499ea2789ddcfebcace17f6478c (patch) | |
tree | f37a38cd02c29d643acefb904c639e4df8fa7d8e /sys | |
parent | 576b5ef4a0153b9f0135da0d24405e909b267da8 (diff) |
oops, forgot this when committing to subr_pool.c
add pool_walk as debug code.
this can be used to walk over all the items allocated with a pool and have
them examined by a function the caller provides.
with help from and ok tedu@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/pool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/pool.h b/sys/sys/pool.h index 9015f0996b6..f05d1b26c3e 100644 --- a/sys/sys/pool.h +++ b/sys/sys/pool.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pool.h,v 1.30 2008/10/23 23:54:02 tedu Exp $ */ +/* $OpenBSD: pool.h,v 1.31 2008/12/23 06:54:12 dlg Exp $ */ /* $NetBSD: pool.h,v 1.27 2001/06/06 22:00:17 rafal Exp $ */ /*- @@ -160,6 +160,7 @@ int pool_prime(struct pool *, int); void pool_printit(struct pool *, const char *, int (*)(const char *, ...)); int pool_chk(struct pool *, const char *); +void pool_walk(struct pool *, void (*)(void *)); #endif #endif /* _KERNEL */ |