diff options
author | asmodai <asmodai@FreeBSD.org> | 2002-05-18 11:12:02 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2002-05-18 11:12:02 +0000 |
commit | 06b04bc45080f47216d5ac57681001b98caf7c51 (patch) | |
tree | b9827775ff458f52163a4872fdd7a00df3e0519c /share/man/man9/zone.9 | |
parent | 62f2ecedc0689ebd2b775cd3151c3fd33a628852 (diff) | |
download | FreeBSD-src-06b04bc45080f47216d5ac57681001b98caf7c51.zip FreeBSD-src-06b04bc45080f47216d5ac57681001b98caf7c51.tar.gz |
Add description for uma_zcreate().
Submitted by: arr
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r-- | share/man/man9/zone.9 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9 index df23347..f059eba 100644 --- a/share/man/man9/zone.9 +++ b/share/man/man9/zone.9 @@ -29,6 +29,7 @@ .Dt ZONE 9 .Os .Sh NAME +.Nm uma_zcreate , .Nm uma_zalloc , .Nm uma_zfree , .Nm uma_zdestroy @@ -37,6 +38,9 @@ .In sys/param.h .In sys/queue.h .In vm/uma.h +.Ft uma_zone_t +.Fn uma_zcreate "char *name" "int size" "uma_ctor ctor" "uma_dtor dtor" "uma_in +it uminit" "uma_fini fini" "int align" "u_int16_t flags" .Ft void * .Fn uma_zalloc "uma_zone_t zone, int flags" .Ft void @@ -77,6 +81,14 @@ it will have been cleared to zeroes, however subsequent allocations will retain the contents as of the last free, with the exception of the fields mentioned above. .Pp +The +.Fn uma_zcreate +function creates a new zone from which items may then be allocated from. +The +.Fa name +argument is a text name of the zone for debugging and stats; this memory +should not be freed until the zone has been deallocated. +.Pp To allocate an item from a zone, simply call .Fn uma_zalloc with a pointer to that zone |