summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2007-04-23 11:28:24 +0000
committerart <art@openbsd.org>2007-04-23 11:28:24 +0000
commit9783288c54a563c954c380ca92b3bbd0c124386f (patch)
tree2e3138c602ff42e2757a97a82dc30b587b8dabdc
parentspelling in comment fix. (diff)
downloadwireguard-openbsd-9783288c54a563c954c380ca92b3bbd0c124386f.tar.xz
wireguard-openbsd-9783288c54a563c954c380ca92b3bbd0c124386f.zip
Clean up some comments.
Don't say that the nointr allocator happens to be interrupt safe since that's something that callers shouldn't know and it just confuses people. If you want an interrupt safe allocator you specify NULL as the last argument to pool_init(). If you want a no interrupt allocator you use _nointr. The fact that they happen to be the same right now is irrelevant. pointed out by kettenis@
-rw-r--r--sys/sys/pool.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/pool.h b/sys/sys/pool.h
index db2b629b4df..46c55b65632 100644
--- a/sys/sys/pool.h
+++ b/sys/sys/pool.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pool.h,v 1.22 2007/04/23 09:27:59 art Exp $ */
+/* $OpenBSD: pool.h,v 1.23 2007/04/23 11:28:24 art Exp $ */
/* $NetBSD: pool.h,v 1.27 2001/06/06 22:00:17 rafal Exp $ */
/*-
@@ -188,9 +188,8 @@ struct pool {
#ifdef _KERNEL
/* old nointr allocator, still needed for large allocations */
extern struct pool_allocator pool_allocator_oldnointr;
-/* interrupt safe (name preserved for compat) new default allocator */
+
extern struct pool_allocator pool_allocator_nointr;
-/* previous interrupt safe allocator, allocates from kmem */
void pool_init(struct pool *, size_t, u_int, u_int, int,
const char *, struct pool_allocator *);