View | Details | Raw Unified | Return to bug 209716 | Differences between
and this patch

Collapse All | Expand All

(-)b/share/man/man9/zone.9 (-1 / +21 lines)
Lines 29-34 Link Here
29
.Dt ZONE 9
29
.Dt ZONE 9
30
.Os
30
.Os
31
.Sh NAME
31
.Sh NAME
32
.Nm uma_prealloc ,
32
.Nm uma_zcreate ,
33
.Nm uma_zcreate ,
33
.Nm uma_zalloc ,
34
.Nm uma_zalloc ,
34
.Nm uma_zalloc_arg ,
35
.Nm uma_zalloc_arg ,
Lines 36-41 Link Here
36
.Nm uma_zfree_arg ,
37
.Nm uma_zfree_arg ,
37
.Nm uma_find_refcnt ,
38
.Nm uma_find_refcnt ,
38
.Nm uma_zdestroy ,
39
.Nm uma_zdestroy ,
40
.Nm uma_zone_reserve ,
39
.Nm uma_zone_set_max,
41
.Nm uma_zone_set_max,
40
.Nm uma_zone_get_max,
42
.Nm uma_zone_get_max,
41
.Nm uma_zone_get_cur,
43
.Nm uma_zone_get_cur,
Lines 46-51 Link Here
46
.In sys/param.h
48
.In sys/param.h
47
.In sys/queue.h
49
.In sys/queue.h
48
.In vm/uma.h
50
.In vm/uma.h
51
.Ft void
52
.Fn uma_prealloc "uma_zone_t zone" "int nitems"
49
.Ft uma_zone_t
53
.Ft uma_zone_t
50
.Fo uma_zcreate
54
.Fo uma_zcreate
51
.Fa "char *name" "int size"
55
.Fa "char *name" "int size"
Lines 64-69 Link Here
64
.Fn uma_find_refcnt "uma_zone_t zone" "void *item"
68
.Fn uma_find_refcnt "uma_zone_t zone" "void *item"
65
.Ft void
69
.Ft void
66
.Fn uma_zdestroy "uma_zone_t zone"
70
.Fn uma_zdestroy "uma_zone_t zone"
71
.Ft void
72
.Fn uma_zone_reserve "uma_zone_t zone" "int nitems"
67
.Ft int
73
.Ft int
68
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
74
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
69
.Ft int
75
.Ft int
Lines 272-277 must have been freed with Link Here
272
before.
278
before.
273
.Pp
279
.Pp
274
The
280
The
281
.Fn uma_prealloc
282
function pre-fills a zone with items.
283
This function is blocking and should be called before the zone is used.
284
.Pp
285
The
286
.Fn uma_zone_reserve
287
function sets a reserve of items to hold for
288
.Dv M_USE_RESERVE
289
allocations.
290
No new items are allocated.
291
The
292
.Fn uma_prealloc
293
function can be used to fill the reserve before it is needed.
294
.Pp
295
The
275
.Fn uma_zone_set_max
296
.Fn uma_zone_set_max
276
function limits the number of items
297
function limits the number of items
277
.Pq and therefore memory
298
.Pq and therefore memory
278
- 

Return to bug 209716