View | Details | Raw Unified | Return to bug 120357
Collapse All | Expand All

(-)zone.9 (+17 lines)
Lines 31-37 Link Here
31
.Sh NAME
31
.Sh NAME
32
.Nm uma_zcreate ,
32
.Nm uma_zcreate ,
33
.Nm uma_zalloc ,
33
.Nm uma_zalloc ,
34
.Nm uma_zalloc_arg ,
34
.Nm uma_zfree ,
35
.Nm uma_zfree ,
36
.Nm uma_zfree_arg ,
35
.Nm uma_zdestroy ,
37
.Nm uma_zdestroy ,
36
.Nm uma_zone_set_max
38
.Nm uma_zone_set_max
37
.Nd zone allocator
39
.Nd zone allocator
Lines 47-55 Link Here
47
.Fc
49
.Fc
48
.Ft "void *"
50
.Ft "void *"
49
.Fn uma_zalloc "uma_zone_t zone" "int flags"
51
.Fn uma_zalloc "uma_zone_t zone" "int flags"
52
.Ft "void *"
53
.Fn uma_zalloc_arg "uma_zone_t zone" "void *arg" "int flags"
50
.Ft void
54
.Ft void
51
.Fn uma_zfree "uma_zone_t zone" "void *item"
55
.Fn uma_zfree "uma_zone_t zone" "void *item"
52
.Ft void
56
.Ft void
57
.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
58
.Ft void
53
.Fn uma_zdestroy "uma_zone_t zone"
59
.Fn uma_zdestroy "uma_zone_t zone"
54
.Ft void
60
.Ft void
55
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
61
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
Lines 142-147 Link Here
142
.Fn uma_zfree
148
.Fn uma_zfree
143
with a pointer to the zone and a pointer to the item.
149
with a pointer to the zone and a pointer to the item.
144
.Pp
150
.Pp
151
The variations
152
.Fn uma_zalloc_arg
153
and
154
.Fn uma_zfree_arg
155
allow to
156
specify an argument for the
157
.Dv ctor
158
and
159
.Dv dtor
160
functions, respectively.
161
.Pp
145
Created zones,
162
Created zones,
146
which are empty,
163
which are empty,
147
can be destroyed using
164
can be destroyed using

Return to bug 120357