]> git.cameronkatri.com Git - apple_cmds.git/blob - system_cmds/gcore.tproj/vm.h
Merge branch 'apple'
[apple_cmds.git] / system_cmds / gcore.tproj / vm.h
1 /*
2 * Copyright (c) 2016 Apple Inc. All rights reserved.
3 */
4
5 #include <mach/mach.h>
6 #include <mach/mach_port.h>
7 #include <mach/task.h>
8 #include <mach/mach_vm.h>
9 #include <stdbool.h>
10
11 #include "corefile.h"
12 #include "region.h"
13
14 #ifndef _VM_H
15 #define _VM_H
16
17 extern void setpageshift(void);
18 extern int pageshift_host;
19 extern int pageshift_app;
20
21 struct region;
22 struct regionhead;
23
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 *);
28
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 *);
32
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 *);
36
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;
40
41 extern int is_tagged(task_t, mach_vm_offset_t, mach_vm_offset_t, unsigned);
42
43 #ifdef RDAR_23744374
44 extern bool is_actual_size(const task_t, const struct region *, mach_vm_size_t *);
45 #endif
46
47 #endif /* _VM_H */