X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d52fe63fc81f7e44faaae711812a211a78434976..9bccf70c0258c7cac2dcb80011b2a964d884c552:/osfmk/kern/zalloc.h diff --git a/osfmk/kern/zalloc.h b/osfmk/kern/zalloc.h index c2554d815..74aeab881 100644 --- a/osfmk/kern/zalloc.h +++ b/osfmk/kern/zalloc.h @@ -62,7 +62,12 @@ #include #include -#ifdef MACH_KERNEL_PRIVATE +#include + +#ifdef __APPLE_API_PRIVATE + +#ifdef MACH_KERNEL_PRIVATE + #include #include #include @@ -101,7 +106,6 @@ struct zone { decl_simple_lock_data(,lock) /* generic lock */ }; - extern void zone_gc(void); extern void consider_zone_gc(void); @@ -114,8 +118,9 @@ extern void zone_bootstrap(void); /* Init zone module */ extern void zone_init(vm_size_t); -#endif /* ! MACH_KERNEL_PRIVATE */ +#endif /* MACH_KERNEL_PRIVATE */ +#endif /* __APPLE_API_PRIVATE */ /* Allocate from zone */ extern vm_offset_t zalloc( @@ -179,22 +184,34 @@ extern integer_t zone_free_count(zone_t zone); #define Z_EXPAND 3 /* Make zone expandable */ #define Z_FOREIGN 4 /* Allow collectable zone to contain foreign */ /* (not allocated via zalloc) elements. */ -#ifdef MACH_KERNEL_PRIVATE + +#ifdef __APPLE_API_PRIVATE + +#ifdef MACH_KERNEL_PRIVATE + #if ZONE_DEBUG + #if MACH_KDB + extern vm_offset_t next_element( zone_t z, vm_offset_t elt); extern vm_offset_t first_element( zone_t z); + #endif /* MACH_KDB */ + extern void zone_debug_enable( zone_t z); extern void zone_debug_disable( zone_t z); + #endif /* ZONE_DEBUG */ -#endif MACH_KERNEL_PRIVATE + +#endif MACH_KERNEL_PRIVATE + +#endif /* __APPLE_API_PRIVATE */ #endif /* _KERN_ZALLOC_H_ */