diff options
author | jeff <jeff@FreeBSD.org> | 2002-03-20 05:28:34 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-03-20 05:28:34 +0000 |
commit | aa0e8b9e515b3df6d81ffe9b1e252449fe6efb7b (patch) | |
tree | 2bde23573b4710d2ce6cbe8b09b39802f83ecc04 /sys/vm/uma.h | |
parent | 95b805ab3ba49af1a775609fd71d8bd8617ca30c (diff) | |
download | FreeBSD-src-aa0e8b9e515b3df6d81ffe9b1e252449fe6efb7b.zip FreeBSD-src-aa0e8b9e515b3df6d81ffe9b1e252449fe6efb7b.tar.gz |
Add uma_zone_set_max() to add enforced limits to non vm obj backed zones.
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r-- | sys/vm/uma.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h index be2c90b..0797519 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 |