diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-15 02:00:19 +0000 |
commit | 9d8236625502d9aebd87ee4b8aa759eb7dd062ae (patch) | |
tree | 608f67fdaff3caceaeb03f449b57d21037a3fe79 /share/man | |
parent | 2470899b803a7fb5d135883edd5ddd82d6a592c7 (diff) |
all pools have their ipl set via pool_setipl, so fold it into pool_init.
the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.
most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.
the manpage and subr_pool.c bits i did myself.
ok tedu@ jmatthew@
@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/pool.9 | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/share/man/man9/pool.9 b/share/man/man9/pool.9 index b23f50e4b85..5dd4f35ee7b 100644 --- a/share/man/man9/pool.9 +++ b/share/man/man9/pool.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pool.9,v 1.52 2016/04/21 04:09:28 mlarkin Exp $ +.\" $OpenBSD: pool.9,v 1.53 2016/09/15 02:00:16 dlg Exp $ .\" $NetBSD: pool.9,v 1.18 2001/06/21 11:59:01 wiz Exp $ .\" .\" Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: April 21 2016 $ +.Dd $Mdocdate: September 15 2016 $ .Dt POOL_INIT 9 .Os .Sh NAME @@ -37,7 +37,6 @@ .Nm pool_get , .Nm pool_put , .Nm pool_prime , -.Nm pool_setipl , .Nm pool_sethiwat , .Nm pool_setlowat , .Nm pool_sethardlimit @@ -50,7 +49,7 @@ .Fa "struct pool *pool" .Fa "size_t size" .Fa "u_int align" -.Fa "u_int align_offset" +.Fa "int ipl" .Fa "int flags" .Fa "const char *wmesg" .Fa "struct pool_allocator *palloc" @@ -66,8 +65,6 @@ .Ft int .Fn pool_prime "struct pool *pp" "int nitems" .Ft void -.Fn pool_setipl "struct pool *pp" "int ipl" -.Ft void .Fn pool_sethiwat "struct pool *pp" "int n" .Ft void .Fn pool_setlowat "struct pool *pp" "int n" @@ -112,10 +109,12 @@ Specifies the memory address alignment of the items returned by This argument must be a power of two. If zero, the alignment defaults to an architecture-specific natural alignment. -.It Fa align_offset -The offset within an item to which the -.Fa align -parameter applies. +.It Fa ipl +The interrupt protection level used to protect the pool's internals, +and at what level the pool can be safely used. +See +.Xr spl 9 +for a list of the IPLs. .It Fa flags Specifies various flags set on the pool at creation time. .It Fa wmesg @@ -266,22 +265,6 @@ Unlike .Fn pool_prime , this function does not allocate the necessary memory up-front. .El -.Ss SETTING THE PROTECTION LEVEL -The -.Fn pool_setipl -function is used to specify the interrupt protection level at which the pool -can be safely used. -.Pp -.Fn pool_setipl -.Bl -tag -offset indent -width "flags" -.It Fa pp -The handle identifying the pool resource instance. -.It Fa ipl -The interrupt protection level used to protect the pool's internals. -See -.Xr spl 9 -for a list of the IPLs. -.El .Ss SETTING HARD LIMITS The function .Fn pool_sethardlimit |