diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-23 11:28:25 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-23 11:28:25 +0000 |
commit | f5e65ba44239c7275e5940c0801235f47f607526 (patch) | |
tree | 4709aef1f45634fc592a245d0c865977124895d0 /sys | |
parent | 043331140f54a0d3e332756a02a4af69eee6d53c (diff) |
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/pool.h | 5 |
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 *); |