From 736ee5907f3de3559a85fbb0c12b75d10d4f4c90 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Wed, 20 Mar 2002 05:28:34 +0000 Subject: Add uma_zone_set_max() to add enforced limits to non vm obj backed zones. --- sys/vm/uma.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/vm/uma.h') diff --git a/sys/vm/uma.h b/sys/vm/uma.h index be2c90b92ab0..0797519ab34d 100644 --- a/sys/vm/uma.h +++ b/sys/vm/uma.h @@ -359,6 +359,16 @@ void uma_reclaim(void); struct vm_object; int uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int size); +/* + * Sets a high limit on the number of items allowed in a zone + * + * Arguments: + * zone The zone to limit + * + * Returns: + * Nothing + */ +void uma_zone_set_max(uma_zone_t zone, int nitems); /* * Replaces the standard page_alloc or obj_alloc functions for this zone -- cgit v1.3