]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/zalloc.c
xnu-3789.51.2.tar.gz
[apple/xnu.git] / osfmk / kern / zalloc.c
index 78ace5f990688529f05fa225e87285a5793e211f..f9649749f7d545854c8ebbfeeeb5fd9f4ca434ba 100644 (file)
@@ -3407,4 +3407,11 @@ kern_wired_diagnose(void)
            top_wired, total_wired, total_zone, osfmk_wired);
 }
 
+boolean_t
+kdp_is_in_zone(void *addr, const char *zone_name)
+{
+       zone_t z;
+       return (zone_element_size(addr, &z) && !strcmp(z->zone_name, zone_name));
+}
+
 #endif /* DEBUG || DEVELOPMENT */