1.\"-
2.\" Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
--- 9 unchanged lines hidden (view full) ---
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man9/zone.9 213910 2010-10-16 04:14:45Z lstewart $
27.\"
28.Dd October 9, 2010
29.Dt ZONE 9
30.Os
31.Sh NAME
32.Nm uma_zcreate ,
33.Nm uma_zalloc ,
34.Nm uma_zalloc_arg ,
--- 19 unchanged lines hidden (view full) ---
54.Ft "void *"
55.Fn uma_zalloc_arg "uma_zone_t zone" "void *arg" "int flags"
56.Ft void
57.Fn uma_zfree "uma_zone_t zone" "void *item"
58.Ft void
59.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
60.Ft void
61.Fn uma_zdestroy "uma_zone_t zone"
62.Ft void
63.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
64.Ft int
65.Fn uma_zone_get_max "uma_zone_t zone"
66.Ft int
67.Fn uma_zone_get_cur "uma_zone_t zone"
68.Sh DESCRIPTION
69The zone allocator provides an efficient interface for managing
70dynamically-sized collections of items of similar size.
--- 109 unchanged lines hidden (view full) ---
180.Fn uma_zone_set_max
181function limits the number of items
182.Pq and therefore memory
183that can be allocated to
184.Fa zone .
185The
186.Fa nitems
187argument specifies the requested upper limit number of items.
188The effective limit may end up being higher than requested, as the
189implementation will round up to ensure all memory pages allocated to the zone
190are utilised to capacity.
191The limit applies to the total number of items in the zone, which includes
192allocated items, free items and free items in the per-cpu caches.
193On systems with more than one CPU it may not be possible to allocate
194the specified number of items even when there is no shortage of memory,
195because all of the remaining free items may be in the caches of the
196other CPUs when the limit is hit.
197.Pp
198The
--- 37 unchanged lines hidden ---
2.\" Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
--- 9 unchanged lines hidden (view full) ---
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/share/man/man9/zone.9 213910 2010-10-16 04:14:45Z lstewart $
27.\"
28.Dd October 9, 2010
29.Dt ZONE 9
30.Os
31.Sh NAME
32.Nm uma_zcreate ,
33.Nm uma_zalloc ,
34.Nm uma_zalloc_arg ,
--- 19 unchanged lines hidden (view full) ---
54.Ft "void *"
55.Fn uma_zalloc_arg "uma_zone_t zone" "void *arg" "int flags"
56.Ft void
57.Fn uma_zfree "uma_zone_t zone" "void *item"
58.Ft void
59.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
60.Ft void
61.Fn uma_zdestroy "uma_zone_t zone"
62.Ft void
63.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
64.Ft int
65.Fn uma_zone_get_max "uma_zone_t zone"
66.Ft int
67.Fn uma_zone_get_cur "uma_zone_t zone"
68.Sh DESCRIPTION
69The zone allocator provides an efficient interface for managing
70dynamically-sized collections of items of similar size.
--- 109 unchanged lines hidden (view full) ---
180.Fn uma_zone_set_max
181function limits the number of items
182.Pq and therefore memory
183that can be allocated to
184.Fa zone .
185The
186.Fa nitems
187argument specifies the requested upper limit number of items.
188The effective limit may end up being higher than requested, as the
189implementation will round up to ensure all memory pages allocated to the zone
190are utilised to capacity.
191The limit applies to the total number of items in the zone, which includes
192allocated items, free items and free items in the per-cpu caches.
193On systems with more than one CPU it may not be possible to allocate
194the specified number of items even when there is no shortage of memory,
195because all of the remaining free items may be in the caches of the
196other CPUs when the limit is hit.
197.Pp
198The
--- 37 unchanged lines hidden ---