Lines 34-40
Link Here
|
34 |
.Nm uma_zalloc_arg , |
34 |
.Nm uma_zalloc_arg , |
35 |
.Nm uma_zfree , |
35 |
.Nm uma_zfree , |
36 |
.Nm uma_zfree_arg , |
36 |
.Nm uma_zfree_arg , |
37 |
.Nm uma_find_refcnt , |
|
|
38 |
.Nm uma_zdestroy , |
37 |
.Nm uma_zdestroy , |
39 |
.Nm uma_zone_set_max, |
38 |
.Nm uma_zone_set_max, |
40 |
.Nm uma_zone_get_max, |
39 |
.Nm uma_zone_get_max, |
Lines 60-67
Link Here
|
60 |
.Fn uma_zfree "uma_zone_t zone" "void *item" |
59 |
.Fn uma_zfree "uma_zone_t zone" "void *item" |
61 |
.Ft void |
60 |
.Ft void |
62 |
.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg" |
61 |
.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg" |
63 |
.Ft "uint32_t *" |
|
|
64 |
.Fn uma_find_refcnt "uma_zone_t zone" "void *item" |
65 |
.Ft void |
62 |
.Ft void |
66 |
.Fn uma_zdestroy "uma_zone_t zone" |
63 |
.Fn uma_zdestroy "uma_zone_t zone" |
67 |
.Ft int |
64 |
.Ft int |
Lines 155-164
is a subset of the following flags:
Link Here
|
155 |
.Bl -tag -width "foo" |
152 |
.Bl -tag -width "foo" |
156 |
.It Dv UMA_ZONE_NOFREE |
153 |
.It Dv UMA_ZONE_NOFREE |
157 |
Slabs of the zone are never returned back to VM. |
154 |
Slabs of the zone are never returned back to VM. |
158 |
.It Dv UMA_ZONE_REFCNT |
|
|
159 |
Each item in the zone would have internal reference counter associated with it. |
160 |
See |
161 |
.Fn uma_find_refcnt . |
162 |
.It Dv UMA_ZONE_NODUMP |
155 |
.It Dv UMA_ZONE_NODUMP |
163 |
Pages belonging to the zone will not be included into mini-dumps. |
156 |
Pages belonging to the zone will not be included into mini-dumps. |
164 |
.It Dv UMA_ZONE_PCPU |
157 |
.It Dv UMA_ZONE_PCPU |
Lines 257-269
and
Link Here
|
257 |
.Dv dtor |
250 |
.Dv dtor |
258 |
functions, respectively. |
251 |
functions, respectively. |
259 |
.Pp |
252 |
.Pp |
260 |
If zone was created with |
|
|
261 |
.Dv UMA_ZONE_REFCNT |
262 |
flag, then pointer to reference counter for an item can be retrieved with |
263 |
help of the |
264 |
.Fn uma_find_refcnt |
265 |
function. |
266 |
.Pp |
267 |
Created zones, |
253 |
Created zones, |
268 |
which are empty, |
254 |
which are empty, |
269 |
can be destroyed using |
255 |
can be destroyed using |
270 |
- |
|
|