summaryrefslogtreecommitdiffstats
path: root/sys/vm/memguard.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-10-12 18:08:28 +0000
committerglebius <glebius@FreeBSD.org>2011-10-12 18:08:28 +0000
commit2522c42334ee2fd458372bfa8058df46b004a397 (patch)
tree99a8fc211be926327f1c06faf02f73a2a7263fa6 /sys/vm/memguard.h
parenteacdf4cafb62dda299c5691e9483cb910e9c8f6b (diff)
downloadFreeBSD-src-2522c42334ee2fd458372bfa8058df46b004a397.zip
FreeBSD-src-2522c42334ee2fd458372bfa8058df46b004a397.tar.gz
Make memguard(9) capable to guard uma(9) allocations.
Diffstat (limited to 'sys/vm/memguard.h')
-rw-r--r--sys/vm/memguard.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/memguard.h b/sys/vm/memguard.h
index 25238b4..335e237 100644
--- a/sys/vm/memguard.h
+++ b/sys/vm/memguard.h
@@ -40,7 +40,8 @@ void memguard_init(struct vm_map *);
void *memguard_alloc(unsigned long, int);
void *memguard_realloc(void *, unsigned long, struct malloc_type *, int);
void memguard_free(void *);
-int memguard_cmp(struct malloc_type *, unsigned long);
+int memguard_cmp_mtp(struct malloc_type *, unsigned long);
+int memguard_cmp_zone(uma_zone_t);
int is_memguard_addr(void *);
#else
#define memguard_fudge(size, xxx) (size)
@@ -48,7 +49,8 @@ int is_memguard_addr(void *);
#define memguard_alloc(size, flags) NULL
#define memguard_realloc(a, s, mtp, f) NULL
#define memguard_free(addr) do { } while (0)
-#define memguard_cmp(mtp, size) 0
+#define memguard_cmp_mtp(mtp, size) 0
+#define memguard_cmp_zone(zone) 0
#define is_memguard_addr(addr) 0
#endif
OpenPOWER on IntegriCloud