summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-08 04:48:58 +0000
committerjeff <jeff@FreeBSD.org>2002-04-08 04:48:58 +0000
commit75d2443b7837a96530837f07564dc648e4b59e13 (patch)
tree4573d64b925be6743a9e6b2c5416827caec76e1c /sys/vm/uma.h
parentd9992faaf2001cc6dca237e00491cc57a7426909 (diff)
downloadFreeBSD-src-75d2443b7837a96530837f07564dc648e4b59e13.zip
FreeBSD-src-75d2443b7837a96530837f07564dc648e4b59e13.tar.gz
Implement uma_zdestroy(). It's prototype changed slightly. I decided that I
didn't like the wait argument and that if you were removing a zone it had better be empty. Also, I broke out part of hash_expand and made a seperate hash_free() for use in uma_zdestroy.
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r--sys/vm/uma.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h
index 8a61ee4..57fcf56 100644
--- a/sys/vm/uma.h
+++ b/sys/vm/uma.h
@@ -182,19 +182,14 @@ uma_zone_t uma_zcreate(char *name, int size, uma_ctor ctor, uma_dtor dtor,
#define UMA_ALIGN_CACHE (16 - 1) /* Cache line size align */
/*
- * Destroys a uma zone
+ * Destroys an empty uma zone. If the zone is not empty uma complains loudly.
*
* Arguments:
* zone The zone we want to destroy.
- * wait This flag indicates whether or not we should wait for all
- * allocations to free, or return an errno on outstanding memory.
*
- * Returns:
- * 0 on successful completion, or EWOULDBLOCK if there are outstanding
- * allocations and the wait flag is M_NOWAIT
*/
-int uma_zdestroy(uma_zone_t zone, int wait);
+void uma_zdestroy(uma_zone_t zone);
/*
* Allocates an item out of a zone
OpenPOWER on IntegriCloud