2 * Copyright (c) 2016 Apple Inc. All rights reserved.
6 #include <mach/mach_port.h>
8 #include <mach/mach_vm.h>
17 extern void setpageshift(void);
18 extern int pageshift_host
;
19 extern int pageshift_app
;
24 extern void del_fileref_region(struct region
*);
25 extern void del_zfod_region(struct region
*);
26 extern void del_sparse_region(struct region
*);
27 extern void del_vanilla_region(struct region
*);
29 extern struct regionhead
*build_region_list(task_t
);
30 extern int walk_region_list(struct regionhead
*, walk_region_cbfn_t
, void *);
31 extern void del_region_list(struct regionhead
*);
33 extern void print_memory_region_header(void);
34 extern void print_memory_region(const struct region
*);
35 extern void print_one_memory_region(const struct region
*);
37 extern walk_region_cbfn_t region_print_memory
;
38 extern walk_region_cbfn_t region_write_memory
;
39 extern walk_region_cbfn_t region_size_memory
;
41 extern int is_tagged(task_t
, mach_vm_offset_t
, mach_vm_offset_t
, unsigned);
44 extern bool is_actual_size(const task_t
, const struct region
*, mach_vm_size_t
*);