blob: 3e38ccae2d48525d597ee33a94f55e9be49eb146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/*
* Mach Operating System
* Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* Mach kernel debugging interface type declarations
*/
#ifndef _MACH_DEBUG_MACH_DEBUG_TYPES_DEFS_
#define _MACH_DEBUG_MACH_DEBUG_TYPES_DEFS_
#include <mach/std_types.defs>
#define CACHE_NAME_MAX_LEN 32
type cache_name_t = struct[CACHE_NAME_MAX_LEN] of char;
#undef CACHE_NAME_MAX_LEN
type cache_info_t = struct {
integer_t flags;
rpc_vm_size_t cpu_pool_size;
rpc_vm_size_t obj_size;
rpc_vm_size_t align;
rpc_vm_size_t buf_size;
rpc_vm_size_t slab_size;
rpc_long_natural_t bufs_per_slab;
rpc_long_natural_t nr_objs;
rpc_long_natural_t nr_bufs;
rpc_long_natural_t nr_slabs;
rpc_long_natural_t nr_free_slabs;
cache_name_t name;
};
type cache_info_array_t = array[] of cache_info_t;
type hash_info_bucket_t = struct {
unsigned hib_count;
};
type hash_info_bucket_array_t = array[] of hash_info_bucket_t;
type vm_region_info_t = struct {
rpc_vm_offset_t vri_start;
rpc_vm_offset_t vri_end;
vm_prot_t vri_protection;
vm_prot_t vri_max_protection;
vm_inherit_t vri_inheritance;
unsigned vri_wired_count;
unsigned vri_user_wired_count;
rpc_vm_offset_t vri_object;
rpc_vm_offset_t vri_offset;
integer_t vri_needs_copy;
unsigned vri_sharing;
};
type vm_region_info_array_t = array[] of vm_region_info_t;
type vm_object_info_state_t = uint32_t;
type vm_object_info_t = struct {
rpc_vm_offset_t voi_object;
rpc_vm_size_t voi_pagesize;
rpc_vm_size_t voi_size;
unsigned voi_ref_count;
unsigned voi_resident_page_count;
unsigned voi_absent_count;
rpc_vm_offset_t voi_copy;
rpc_vm_offset_t voi_shadow;
rpc_vm_offset_t voi_shadow_offset;
rpc_vm_offset_t voi_paging_offset;
memory_object_copy_strategy_t voi_copy_strategy;
rpc_vm_offset_t voi_last_alloc;
unsigned voi_paging_in_progress;
vm_object_info_state_t voi_state;
};
type vm_object_info_array_t = array[] of vm_object_info_t;
type vm_page_info_state_t = uint32_t;
type vm_page_info_t = struct {
rpc_vm_offset_t vpi_offset;
rpc_vm_offset_t vpi_phys_addr;
unsigned vpi_wire_count;
vm_prot_t vpi_page_lock;
vm_prot_t vpi_unlock_request;
vm_page_info_state_t vpi_state;
};
type vm_page_info_array_t = array[] of vm_page_info_t;
type symtab_name_t = c_string[32];
type kernel_debug_name_t = c_string[*: 64];
import <mach_debug/mach_debug_types.h>;
#endif /* _MACH_DEBUG_MACH_DEBUG_TYPES_DEFS_ */
|