summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma.h
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-29 23:45:41 +0000
committerjeff <jeff@FreeBSD.org>2002-04-29 23:45:41 +0000
commitc52db1bfdfb3a9e4065f735384e8e23dd29a14c0 (patch)
tree6dec1f923097576eb3f5e981d5d602bbff1c0b68 /sys/vm/uma.h
parent1b161ee22037718913e8fcbbd1e19c367713e1b7 (diff)
downloadFreeBSD-src-c52db1bfdfb3a9e4065f735384e8e23dd29a14c0.zip
FreeBSD-src-c52db1bfdfb3a9e4065f735384e8e23dd29a14c0.tar.gz
Add a new zone flag UMA_ZONE_MTXCLASS. This puts the zone in it's own
mutex class. Currently this is only used for kmapentzone because kmapents are are potentially allocated when freeing memory. This is not dangerous though because no other allocations will be done while holding the kmapentzone lock.
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r--sys/vm/uma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h
index 57fcf56..7f17b52 100644
--- a/sys/vm/uma.h
+++ b/sys/vm/uma.h
@@ -172,6 +172,7 @@ uma_zone_t uma_zcreate(char *name, int size, uma_ctor ctor, uma_dtor dtor,
off of the real memory */
#define UMA_ZONE_MALLOC 0x0010 /* For use by malloc(9) only! */
#define UMA_ZONE_NOFREE 0x0020 /* Do not free slabs of this type! */
+#define UMA_ZONE_MTXCLASS 0x0040 /* Create a new lock class */
/* Definitions for align */
#define UMA_ALIGN_PTR (sizeof(void *) - 1) /* Alignment fit for ptr */
OpenPOWER on IntegriCloud