Root/
Source at commit 1547 created 12 years 10 months ago. By blackosx, Added UseKernelCache boot option to svn | |
---|---|
1 | #ifndef␉_mach_host_user_␊ |
2 | #define␉_mach_host_user_␊ |
3 | ␊ |
4 | /* Module mach_host */␊ |
5 | ␊ |
6 | #include <string.h>␊ |
7 | #include <mach/ndr.h>␊ |
8 | #include <mach/boolean.h>␊ |
9 | #include <mach/kern_return.h>␊ |
10 | #include <mach/notify.h>␊ |
11 | #include <mach/mach_types.h>␊ |
12 | #include <mach/message.h>␊ |
13 | #include <mach/mig_errors.h>␊ |
14 | #include <mach/port.h>␊ |
15 | ␊ |
16 | #ifdef AUTOTEST␊ |
17 | #ifndef FUNCTION_PTR_T␊ |
18 | #define FUNCTION_PTR_T␊ |
19 | typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);␊ |
20 | typedef struct {␊ |
21 | char *name;␊ |
22 | function_ptr_t function;␊ |
23 | } function_table_entry;␊ |
24 | typedef function_table_entry *function_table_t;␊ |
25 | #endif /* FUNCTION_PTR_T */␊ |
26 | #endif /* AUTOTEST */␊ |
27 | ␊ |
28 | #ifndef␉mach_host_MSG_COUNT␊ |
29 | #define␉mach_host_MSG_COUNT␉20␊ |
30 | #endif␉/* mach_host_MSG_COUNT */␊ |
31 | ␊ |
32 | #include <mach/std_types.h>␊ |
33 | #include <mach/mig.h>␊ |
34 | #include <mach/mach_types.h>␊ |
35 | #include <mach/mach_types.h>␊ |
36 | #include <mach_debug/mach_debug_types.h>␊ |
37 | #include <mach/mach_init.h>␊ |
38 | ␊ |
39 | #ifdef __BeforeMigUserHeader␊ |
40 | __BeforeMigUserHeader␊ |
41 | #endif /* __BeforeMigUserHeader */␊ |
42 | ␊ |
43 | #include <sys/cdefs.h>␊ |
44 | __BEGIN_DECLS␊ |
45 | ␊ |
46 | ␊ |
47 | /* Routine host_info */␊ |
48 | #ifdef␉mig_external␊ |
49 | mig_external␊ |
50 | #else␊ |
51 | extern␊ |
52 | #endif␉/* mig_external */␊ |
53 | kern_return_t host_info␊ |
54 | (␊ |
55 | ␉host_t host,␊ |
56 | ␉host_flavor_t flavor,␊ |
57 | ␉host_info_t host_info_out,␊ |
58 | ␉mach_msg_type_number_t *host_info_outCnt␊ |
59 | );␊ |
60 | ␊ |
61 | /* Routine host_kernel_version */␊ |
62 | #ifdef␉mig_external␊ |
63 | mig_external␊ |
64 | #else␊ |
65 | extern␊ |
66 | #endif␉/* mig_external */␊ |
67 | kern_return_t host_kernel_version␊ |
68 | (␊ |
69 | ␉host_t host,␊ |
70 | ␉kernel_version_t kernel_version␊ |
71 | );␊ |
72 | ␊ |
73 | /* Routine _host_page_size */␊ |
74 | #ifdef␉mig_external␊ |
75 | mig_external␊ |
76 | #else␊ |
77 | extern␊ |
78 | #endif␉/* mig_external */␊ |
79 | kern_return_t _host_page_size␊ |
80 | (␊ |
81 | ␉host_t host,␊ |
82 | ␉vm_size_t *out_page_size␊ |
83 | );␊ |
84 | ␊ |
85 | /* Routine mach_memory_object_memory_entry */␊ |
86 | #ifdef␉mig_external␊ |
87 | mig_external␊ |
88 | #else␊ |
89 | extern␊ |
90 | #endif␉/* mig_external */␊ |
91 | kern_return_t mach_memory_object_memory_entry␊ |
92 | (␊ |
93 | ␉host_t host,␊ |
94 | ␉boolean_t internal,␊ |
95 | ␉vm_size_t size,␊ |
96 | ␉vm_prot_t permission,␊ |
97 | ␉memory_object_t pager,␊ |
98 | ␉mach_port_t *entry_handle␊ |
99 | );␊ |
100 | ␊ |
101 | /* Routine host_processor_info */␊ |
102 | #ifdef␉mig_external␊ |
103 | mig_external␊ |
104 | #else␊ |
105 | extern␊ |
106 | #endif␉/* mig_external */␊ |
107 | kern_return_t host_processor_info␊ |
108 | (␊ |
109 | ␉host_t host,␊ |
110 | ␉processor_flavor_t flavor,␊ |
111 | ␉natural_t *out_processor_count,␊ |
112 | ␉processor_info_array_t *out_processor_info,␊ |
113 | ␉mach_msg_type_number_t *out_processor_infoCnt␊ |
114 | );␊ |
115 | ␊ |
116 | /* Routine host_get_io_master */␊ |
117 | #ifdef␉mig_external␊ |
118 | mig_external␊ |
119 | #else␊ |
120 | extern␊ |
121 | #endif␉/* mig_external */␊ |
122 | kern_return_t host_get_io_master␊ |
123 | (␊ |
124 | ␉host_t host,␊ |
125 | ␉io_master_t *io_master␊ |
126 | );␊ |
127 | ␊ |
128 | /* Routine host_get_clock_service */␊ |
129 | #ifdef␉mig_external␊ |
130 | mig_external␊ |
131 | #else␊ |
132 | extern␊ |
133 | #endif␉/* mig_external */␊ |
134 | kern_return_t host_get_clock_service␊ |
135 | (␊ |
136 | ␉host_t host,␊ |
137 | ␉clock_id_t clock_id,␊ |
138 | ␉clock_serv_t *clock_serv␊ |
139 | );␊ |
140 | ␊ |
141 | /* Routine kmod_get_info */␊ |
142 | #ifdef␉mig_external␊ |
143 | mig_external␊ |
144 | #else␊ |
145 | extern␊ |
146 | #endif␉/* mig_external */␊ |
147 | kern_return_t kmod_get_info␊ |
148 | (␊ |
149 | ␉host_t host,␊ |
150 | ␉kmod_args_t *modules,␊ |
151 | ␉mach_msg_type_number_t *modulesCnt␊ |
152 | );␊ |
153 | ␊ |
154 | /* Routine host_zone_info */␊ |
155 | #ifdef␉mig_external␊ |
156 | mig_external␊ |
157 | #else␊ |
158 | extern␊ |
159 | #endif␉/* mig_external */␊ |
160 | kern_return_t host_zone_info␊ |
161 | (␊ |
162 | ␉host_t host,␊ |
163 | ␉zone_name_array_t *names,␊ |
164 | ␉mach_msg_type_number_t *namesCnt,␊ |
165 | ␉zone_info_array_t *info,␊ |
166 | ␉mach_msg_type_number_t *infoCnt␊ |
167 | );␊ |
168 | ␊ |
169 | /* Routine host_virtual_physical_table_info */␊ |
170 | #ifdef␉mig_external␊ |
171 | mig_external␊ |
172 | #else␊ |
173 | extern␊ |
174 | #endif␉/* mig_external */␊ |
175 | kern_return_t host_virtual_physical_table_info␊ |
176 | (␊ |
177 | ␉host_t host,␊ |
178 | ␉hash_info_bucket_array_t *info,␊ |
179 | ␉mach_msg_type_number_t *infoCnt␊ |
180 | );␊ |
181 | ␊ |
182 | /* Routine host_ipc_hash_info */␊ |
183 | #ifdef␉mig_external␊ |
184 | mig_external␊ |
185 | #else␊ |
186 | extern␊ |
187 | #endif␉/* mig_external */␊ |
188 | kern_return_t host_ipc_hash_info␊ |
189 | (␊ |
190 | ␉host_t host,␊ |
191 | ␉hash_info_bucket_array_t *info,␊ |
192 | ␉mach_msg_type_number_t *infoCnt␊ |
193 | );␊ |
194 | ␊ |
195 | /* Routine processor_set_default */␊ |
196 | #ifdef␉mig_external␊ |
197 | mig_external␊ |
198 | #else␊ |
199 | extern␊ |
200 | #endif␉/* mig_external */␊ |
201 | kern_return_t processor_set_default␊ |
202 | (␊ |
203 | ␉host_t host,␊ |
204 | ␉processor_set_name_t *default_set␊ |
205 | );␊ |
206 | ␊ |
207 | /* Routine processor_set_create */␊ |
208 | #ifdef␉mig_external␊ |
209 | mig_external␊ |
210 | #else␊ |
211 | extern␊ |
212 | #endif␉/* mig_external */␊ |
213 | kern_return_t processor_set_create␊ |
214 | (␊ |
215 | ␉host_t host,␊ |
216 | ␉processor_set_t *new_set,␊ |
217 | ␉processor_set_name_t *new_name␊ |
218 | );␊ |
219 | ␊ |
220 | /* Routine mach_memory_object_memory_entry_64 */␊ |
221 | #ifdef␉mig_external␊ |
222 | mig_external␊ |
223 | #else␊ |
224 | extern␊ |
225 | #endif␉/* mig_external */␊ |
226 | kern_return_t mach_memory_object_memory_entry_64␊ |
227 | (␊ |
228 | ␉host_t host,␊ |
229 | ␉boolean_t internal,␊ |
230 | ␉memory_object_size_t size,␊ |
231 | ␉vm_prot_t permission,␊ |
232 | ␉memory_object_t pager,␊ |
233 | ␉mach_port_t *entry_handle␊ |
234 | );␊ |
235 | ␊ |
236 | /* Routine host_statistics */␊ |
237 | #ifdef␉mig_external␊ |
238 | mig_external␊ |
239 | #else␊ |
240 | extern␊ |
241 | #endif␉/* mig_external */␊ |
242 | kern_return_t host_statistics␊ |
243 | (␊ |
244 | ␉host_t host_priv,␊ |
245 | ␉host_flavor_t flavor,␊ |
246 | ␉host_info_t host_info_out,␊ |
247 | ␉mach_msg_type_number_t *host_info_outCnt␊ |
248 | );␊ |
249 | ␊ |
250 | /* Routine host_request_notification */␊ |
251 | #ifdef␉mig_external␊ |
252 | mig_external␊ |
253 | #else␊ |
254 | extern␊ |
255 | #endif␉/* mig_external */␊ |
256 | kern_return_t host_request_notification␊ |
257 | (␊ |
258 | ␉host_t host,␊ |
259 | ␉host_flavor_t notify_type,␊ |
260 | ␉mach_port_t notify_port␊ |
261 | );␊ |
262 | ␊ |
263 | /* Routine host_lockgroup_info */␊ |
264 | #ifdef␉mig_external␊ |
265 | mig_external␊ |
266 | #else␊ |
267 | extern␊ |
268 | #endif␉/* mig_external */␊ |
269 | kern_return_t host_lockgroup_info␊ |
270 | (␊ |
271 | ␉host_t host,␊ |
272 | ␉lockgroup_info_array_t *lockgroup_info,␊ |
273 | ␉mach_msg_type_number_t *lockgroup_infoCnt␊ |
274 | );␊ |
275 | ␊ |
276 | /* Routine host_statistics64 */␊ |
277 | #ifdef␉mig_external␊ |
278 | mig_external␊ |
279 | #else␊ |
280 | extern␊ |
281 | #endif␉/* mig_external */␊ |
282 | kern_return_t host_statistics64␊ |
283 | (␊ |
284 | ␉host_t host_priv,␊ |
285 | ␉host_flavor_t flavor,␊ |
286 | ␉host_info64_t host_info64_out,␊ |
287 | ␉mach_msg_type_number_t *host_info64_outCnt␊ |
288 | );␊ |
289 | ␊ |
290 | __END_DECLS␊ |
291 | ␊ |
292 | /********************** Caution **************************/␊ |
293 | /* The following data types should be used to calculate */␊ |
294 | /* maximum message sizes only. The actual message may be */␊ |
295 | /* smaller, and the position of the arguments within the */␊ |
296 | /* message layout may vary from what is presented here. */␊ |
297 | /* For example, if any of the arguments are variable- */␊ |
298 | /* sized, and less than the maximum is sent, the data */␊ |
299 | /* will be packed tight in the actual message to reduce */␊ |
300 | /* the presence of holes. */␊ |
301 | /********************** Caution **************************/␊ |
302 | ␊ |
303 | /* typedefs for all requests */␊ |
304 | ␊ |
305 | #ifndef __Request__mach_host_subsystem__defined␊ |
306 | #define __Request__mach_host_subsystem__defined␊ |
307 | ␊ |
308 | #ifdef __MigPackStructs␊ |
309 | #pragma pack(4)␊ |
310 | #endif␊ |
311 | ␉typedef struct {␊ |
312 | ␉␉mach_msg_header_t Head;␊ |
313 | ␉␉NDR_record_t NDR;␊ |
314 | ␉␉host_flavor_t flavor;␊ |
315 | ␉␉mach_msg_type_number_t host_info_outCnt;␊ |
316 | ␉} __Request__host_info_t;␊ |
317 | #ifdef __MigPackStructs␊ |
318 | #pragma pack()␊ |
319 | #endif␊ |
320 | ␊ |
321 | #ifdef __MigPackStructs␊ |
322 | #pragma pack(4)␊ |
323 | #endif␊ |
324 | ␉typedef struct {␊ |
325 | ␉␉mach_msg_header_t Head;␊ |
326 | ␉} __Request__host_kernel_version_t;␊ |
327 | #ifdef __MigPackStructs␊ |
328 | #pragma pack()␊ |
329 | #endif␊ |
330 | ␊ |
331 | #ifdef __MigPackStructs␊ |
332 | #pragma pack(4)␊ |
333 | #endif␊ |
334 | ␉typedef struct {␊ |
335 | ␉␉mach_msg_header_t Head;␊ |
336 | ␉} __Request___host_page_size_t;␊ |
337 | #ifdef __MigPackStructs␊ |
338 | #pragma pack()␊ |
339 | #endif␊ |
340 | ␊ |
341 | #ifdef __MigPackStructs␊ |
342 | #pragma pack(4)␊ |
343 | #endif␊ |
344 | ␉typedef struct {␊ |
345 | ␉␉mach_msg_header_t Head;␊ |
346 | ␉␉/* start of the kernel processed data */␊ |
347 | ␉␉mach_msg_body_t msgh_body;␊ |
348 | ␉␉mach_msg_port_descriptor_t pager;␊ |
349 | ␉␉/* end of the kernel processed data */␊ |
350 | ␉␉NDR_record_t NDR;␊ |
351 | ␉␉boolean_t internal;␊ |
352 | ␉␉vm_size_t size;␊ |
353 | ␉␉vm_prot_t permission;␊ |
354 | ␉} __Request__mach_memory_object_memory_entry_t;␊ |
355 | #ifdef __MigPackStructs␊ |
356 | #pragma pack()␊ |
357 | #endif␊ |
358 | ␊ |
359 | #ifdef __MigPackStructs␊ |
360 | #pragma pack(4)␊ |
361 | #endif␊ |
362 | ␉typedef struct {␊ |
363 | ␉␉mach_msg_header_t Head;␊ |
364 | ␉␉NDR_record_t NDR;␊ |
365 | ␉␉processor_flavor_t flavor;␊ |
366 | ␉} __Request__host_processor_info_t;␊ |
367 | #ifdef __MigPackStructs␊ |
368 | #pragma pack()␊ |
369 | #endif␊ |
370 | ␊ |
371 | #ifdef __MigPackStructs␊ |
372 | #pragma pack(4)␊ |
373 | #endif␊ |
374 | ␉typedef struct {␊ |
375 | ␉␉mach_msg_header_t Head;␊ |
376 | ␉} __Request__host_get_io_master_t;␊ |
377 | #ifdef __MigPackStructs␊ |
378 | #pragma pack()␊ |
379 | #endif␊ |
380 | ␊ |
381 | #ifdef __MigPackStructs␊ |
382 | #pragma pack(4)␊ |
383 | #endif␊ |
384 | ␉typedef struct {␊ |
385 | ␉␉mach_msg_header_t Head;␊ |
386 | ␉␉NDR_record_t NDR;␊ |
387 | ␉␉clock_id_t clock_id;␊ |
388 | ␉} __Request__host_get_clock_service_t;␊ |
389 | #ifdef __MigPackStructs␊ |
390 | #pragma pack()␊ |
391 | #endif␊ |
392 | ␊ |
393 | #ifdef __MigPackStructs␊ |
394 | #pragma pack(4)␊ |
395 | #endif␊ |
396 | ␉typedef struct {␊ |
397 | ␉␉mach_msg_header_t Head;␊ |
398 | ␉} __Request__kmod_get_info_t;␊ |
399 | #ifdef __MigPackStructs␊ |
400 | #pragma pack()␊ |
401 | #endif␊ |
402 | ␊ |
403 | #ifdef __MigPackStructs␊ |
404 | #pragma pack(4)␊ |
405 | #endif␊ |
406 | ␉typedef struct {␊ |
407 | ␉␉mach_msg_header_t Head;␊ |
408 | ␉} __Request__host_zone_info_t;␊ |
409 | #ifdef __MigPackStructs␊ |
410 | #pragma pack()␊ |
411 | #endif␊ |
412 | ␊ |
413 | #ifdef __MigPackStructs␊ |
414 | #pragma pack(4)␊ |
415 | #endif␊ |
416 | ␉typedef struct {␊ |
417 | ␉␉mach_msg_header_t Head;␊ |
418 | ␉} __Request__host_virtual_physical_table_info_t;␊ |
419 | #ifdef __MigPackStructs␊ |
420 | #pragma pack()␊ |
421 | #endif␊ |
422 | ␊ |
423 | #ifdef __MigPackStructs␊ |
424 | #pragma pack(4)␊ |
425 | #endif␊ |
426 | ␉typedef struct {␊ |
427 | ␉␉mach_msg_header_t Head;␊ |
428 | ␉} __Request__host_ipc_hash_info_t;␊ |
429 | #ifdef __MigPackStructs␊ |
430 | #pragma pack()␊ |
431 | #endif␊ |
432 | ␊ |
433 | #ifdef __MigPackStructs␊ |
434 | #pragma pack(4)␊ |
435 | #endif␊ |
436 | ␉typedef struct {␊ |
437 | ␉␉mach_msg_header_t Head;␊ |
438 | ␉} __Request__processor_set_default_t;␊ |
439 | #ifdef __MigPackStructs␊ |
440 | #pragma pack()␊ |
441 | #endif␊ |
442 | ␊ |
443 | #ifdef __MigPackStructs␊ |
444 | #pragma pack(4)␊ |
445 | #endif␊ |
446 | ␉typedef struct {␊ |
447 | ␉␉mach_msg_header_t Head;␊ |
448 | ␉} __Request__processor_set_create_t;␊ |
449 | #ifdef __MigPackStructs␊ |
450 | #pragma pack()␊ |
451 | #endif␊ |
452 | ␊ |
453 | #ifdef __MigPackStructs␊ |
454 | #pragma pack(4)␊ |
455 | #endif␊ |
456 | ␉typedef struct {␊ |
457 | ␉␉mach_msg_header_t Head;␊ |
458 | ␉␉/* start of the kernel processed data */␊ |
459 | ␉␉mach_msg_body_t msgh_body;␊ |
460 | ␉␉mach_msg_port_descriptor_t pager;␊ |
461 | ␉␉/* end of the kernel processed data */␊ |
462 | ␉␉NDR_record_t NDR;␊ |
463 | ␉␉boolean_t internal;␊ |
464 | ␉␉memory_object_size_t size;␊ |
465 | ␉␉vm_prot_t permission;␊ |
466 | ␉} __Request__mach_memory_object_memory_entry_64_t;␊ |
467 | #ifdef __MigPackStructs␊ |
468 | #pragma pack()␊ |
469 | #endif␊ |
470 | ␊ |
471 | #ifdef __MigPackStructs␊ |
472 | #pragma pack(4)␊ |
473 | #endif␊ |
474 | ␉typedef struct {␊ |
475 | ␉␉mach_msg_header_t Head;␊ |
476 | ␉␉NDR_record_t NDR;␊ |
477 | ␉␉host_flavor_t flavor;␊ |
478 | ␉␉mach_msg_type_number_t host_info_outCnt;␊ |
479 | ␉} __Request__host_statistics_t;␊ |
480 | #ifdef __MigPackStructs␊ |
481 | #pragma pack()␊ |
482 | #endif␊ |
483 | ␊ |
484 | #ifdef __MigPackStructs␊ |
485 | #pragma pack(4)␊ |
486 | #endif␊ |
487 | ␉typedef struct {␊ |
488 | ␉␉mach_msg_header_t Head;␊ |
489 | ␉␉/* start of the kernel processed data */␊ |
490 | ␉␉mach_msg_body_t msgh_body;␊ |
491 | ␉␉mach_msg_port_descriptor_t notify_port;␊ |
492 | ␉␉/* end of the kernel processed data */␊ |
493 | ␉␉NDR_record_t NDR;␊ |
494 | ␉␉host_flavor_t notify_type;␊ |
495 | ␉} __Request__host_request_notification_t;␊ |
496 | #ifdef __MigPackStructs␊ |
497 | #pragma pack()␊ |
498 | #endif␊ |
499 | ␊ |
500 | #ifdef __MigPackStructs␊ |
501 | #pragma pack(4)␊ |
502 | #endif␊ |
503 | ␉typedef struct {␊ |
504 | ␉␉mach_msg_header_t Head;␊ |
505 | ␉} __Request__host_lockgroup_info_t;␊ |
506 | #ifdef __MigPackStructs␊ |
507 | #pragma pack()␊ |
508 | #endif␊ |
509 | ␊ |
510 | #ifdef __MigPackStructs␊ |
511 | #pragma pack(4)␊ |
512 | #endif␊ |
513 | ␉typedef struct {␊ |
514 | ␉␉mach_msg_header_t Head;␊ |
515 | ␉␉NDR_record_t NDR;␊ |
516 | ␉␉host_flavor_t flavor;␊ |
517 | ␉␉mach_msg_type_number_t host_info64_outCnt;␊ |
518 | ␉} __Request__host_statistics64_t;␊ |
519 | #ifdef __MigPackStructs␊ |
520 | #pragma pack()␊ |
521 | #endif␊ |
522 | #endif /* !__Request__mach_host_subsystem__defined */␊ |
523 | ␊ |
524 | /* union of all requests */␊ |
525 | ␊ |
526 | #ifndef __RequestUnion__mach_host_subsystem__defined␊ |
527 | #define __RequestUnion__mach_host_subsystem__defined␊ |
528 | union __RequestUnion__mach_host_subsystem {␊ |
529 | ␉__Request__host_info_t Request_host_info;␊ |
530 | ␉__Request__host_kernel_version_t Request_host_kernel_version;␊ |
531 | ␉__Request___host_page_size_t Request__host_page_size;␊ |
532 | ␉__Request__mach_memory_object_memory_entry_t Request_mach_memory_object_memory_entry;␊ |
533 | ␉__Request__host_processor_info_t Request_host_processor_info;␊ |
534 | ␉__Request__host_get_io_master_t Request_host_get_io_master;␊ |
535 | ␉__Request__host_get_clock_service_t Request_host_get_clock_service;␊ |
536 | ␉__Request__kmod_get_info_t Request_kmod_get_info;␊ |
537 | ␉__Request__host_zone_info_t Request_host_zone_info;␊ |
538 | ␉__Request__host_virtual_physical_table_info_t Request_host_virtual_physical_table_info;␊ |
539 | ␉__Request__host_ipc_hash_info_t Request_host_ipc_hash_info;␊ |
540 | ␉__Request__processor_set_default_t Request_processor_set_default;␊ |
541 | ␉__Request__processor_set_create_t Request_processor_set_create;␊ |
542 | ␉__Request__mach_memory_object_memory_entry_64_t Request_mach_memory_object_memory_entry_64;␊ |
543 | ␉__Request__host_statistics_t Request_host_statistics;␊ |
544 | ␉__Request__host_request_notification_t Request_host_request_notification;␊ |
545 | ␉__Request__host_lockgroup_info_t Request_host_lockgroup_info;␊ |
546 | ␉__Request__host_statistics64_t Request_host_statistics64;␊ |
547 | };␊ |
548 | #endif /* !__RequestUnion__mach_host_subsystem__defined */␊ |
549 | /* typedefs for all replies */␊ |
550 | ␊ |
551 | #ifndef __Reply__mach_host_subsystem__defined␊ |
552 | #define __Reply__mach_host_subsystem__defined␊ |
553 | ␊ |
554 | #ifdef __MigPackStructs␊ |
555 | #pragma pack(4)␊ |
556 | #endif␊ |
557 | ␉typedef struct {␊ |
558 | ␉␉mach_msg_header_t Head;␊ |
559 | ␉␉NDR_record_t NDR;␊ |
560 | ␉␉kern_return_t RetCode;␊ |
561 | ␉␉mach_msg_type_number_t host_info_outCnt;␊ |
562 | ␉␉integer_t host_info_out[15];␊ |
563 | ␉} __Reply__host_info_t;␊ |
564 | #ifdef __MigPackStructs␊ |
565 | #pragma pack()␊ |
566 | #endif␊ |
567 | ␊ |
568 | #ifdef __MigPackStructs␊ |
569 | #pragma pack(4)␊ |
570 | #endif␊ |
571 | ␉typedef struct {␊ |
572 | ␉␉mach_msg_header_t Head;␊ |
573 | ␉␉NDR_record_t NDR;␊ |
574 | ␉␉kern_return_t RetCode;␊ |
575 | ␉␉mach_msg_type_number_t kernel_versionOffset; /* MiG doesn't use it */␊ |
576 | ␉␉mach_msg_type_number_t kernel_versionCnt;␊ |
577 | ␉␉char kernel_version[512];␊ |
578 | ␉} __Reply__host_kernel_version_t;␊ |
579 | #ifdef __MigPackStructs␊ |
580 | #pragma pack()␊ |
581 | #endif␊ |
582 | ␊ |
583 | #ifdef __MigPackStructs␊ |
584 | #pragma pack(4)␊ |
585 | #endif␊ |
586 | ␉typedef struct {␊ |
587 | ␉␉mach_msg_header_t Head;␊ |
588 | ␉␉NDR_record_t NDR;␊ |
589 | ␉␉kern_return_t RetCode;␊ |
590 | ␉␉vm_size_t out_page_size;␊ |
591 | ␉} __Reply___host_page_size_t;␊ |
592 | #ifdef __MigPackStructs␊ |
593 | #pragma pack()␊ |
594 | #endif␊ |
595 | ␊ |
596 | #ifdef __MigPackStructs␊ |
597 | #pragma pack(4)␊ |
598 | #endif␊ |
599 | ␉typedef struct {␊ |
600 | ␉␉mach_msg_header_t Head;␊ |
601 | ␉␉/* start of the kernel processed data */␊ |
602 | ␉␉mach_msg_body_t msgh_body;␊ |
603 | ␉␉mach_msg_port_descriptor_t entry_handle;␊ |
604 | ␉␉/* end of the kernel processed data */␊ |
605 | ␉} __Reply__mach_memory_object_memory_entry_t;␊ |
606 | #ifdef __MigPackStructs␊ |
607 | #pragma pack()␊ |
608 | #endif␊ |
609 | ␊ |
610 | #ifdef __MigPackStructs␊ |
611 | #pragma pack(4)␊ |
612 | #endif␊ |
613 | ␉typedef struct {␊ |
614 | ␉␉mach_msg_header_t Head;␊ |
615 | ␉␉/* start of the kernel processed data */␊ |
616 | ␉␉mach_msg_body_t msgh_body;␊ |
617 | ␉␉mach_msg_ool_descriptor_t out_processor_info;␊ |
618 | ␉␉/* end of the kernel processed data */␊ |
619 | ␉␉NDR_record_t NDR;␊ |
620 | ␉␉natural_t out_processor_count;␊ |
621 | ␉␉mach_msg_type_number_t out_processor_infoCnt;␊ |
622 | ␉} __Reply__host_processor_info_t;␊ |
623 | #ifdef __MigPackStructs␊ |
624 | #pragma pack()␊ |
625 | #endif␊ |
626 | ␊ |
627 | #ifdef __MigPackStructs␊ |
628 | #pragma pack(4)␊ |
629 | #endif␊ |
630 | ␉typedef struct {␊ |
631 | ␉␉mach_msg_header_t Head;␊ |
632 | ␉␉/* start of the kernel processed data */␊ |
633 | ␉␉mach_msg_body_t msgh_body;␊ |
634 | ␉␉mach_msg_port_descriptor_t io_master;␊ |
635 | ␉␉/* end of the kernel processed data */␊ |
636 | ␉} __Reply__host_get_io_master_t;␊ |
637 | #ifdef __MigPackStructs␊ |
638 | #pragma pack()␊ |
639 | #endif␊ |
640 | ␊ |
641 | #ifdef __MigPackStructs␊ |
642 | #pragma pack(4)␊ |
643 | #endif␊ |
644 | ␉typedef struct {␊ |
645 | ␉␉mach_msg_header_t Head;␊ |
646 | ␉␉/* start of the kernel processed data */␊ |
647 | ␉␉mach_msg_body_t msgh_body;␊ |
648 | ␉␉mach_msg_port_descriptor_t clock_serv;␊ |
649 | ␉␉/* end of the kernel processed data */␊ |
650 | ␉} __Reply__host_get_clock_service_t;␊ |
651 | #ifdef __MigPackStructs␊ |
652 | #pragma pack()␊ |
653 | #endif␊ |
654 | ␊ |
655 | #ifdef __MigPackStructs␊ |
656 | #pragma pack(4)␊ |
657 | #endif␊ |
658 | ␉typedef struct {␊ |
659 | ␉␉mach_msg_header_t Head;␊ |
660 | ␉␉/* start of the kernel processed data */␊ |
661 | ␉␉mach_msg_body_t msgh_body;␊ |
662 | ␉␉mach_msg_ool_descriptor_t modules;␊ |
663 | ␉␉/* end of the kernel processed data */␊ |
664 | ␉␉NDR_record_t NDR;␊ |
665 | ␉␉mach_msg_type_number_t modulesCnt;␊ |
666 | ␉} __Reply__kmod_get_info_t;␊ |
667 | #ifdef __MigPackStructs␊ |
668 | #pragma pack()␊ |
669 | #endif␊ |
670 | ␊ |
671 | #ifdef __MigPackStructs␊ |
672 | #pragma pack(4)␊ |
673 | #endif␊ |
674 | ␉typedef struct {␊ |
675 | ␉␉mach_msg_header_t Head;␊ |
676 | ␉␉/* start of the kernel processed data */␊ |
677 | ␉␉mach_msg_body_t msgh_body;␊ |
678 | ␉␉mach_msg_ool_descriptor_t names;␊ |
679 | ␉␉mach_msg_ool_descriptor_t info;␊ |
680 | ␉␉/* end of the kernel processed data */␊ |
681 | ␉␉NDR_record_t NDR;␊ |
682 | ␉␉mach_msg_type_number_t namesCnt;␊ |
683 | ␉␉mach_msg_type_number_t infoCnt;␊ |
684 | ␉} __Reply__host_zone_info_t;␊ |
685 | #ifdef __MigPackStructs␊ |
686 | #pragma pack()␊ |
687 | #endif␊ |
688 | ␊ |
689 | #ifdef __MigPackStructs␊ |
690 | #pragma pack(4)␊ |
691 | #endif␊ |
692 | ␉typedef struct {␊ |
693 | ␉␉mach_msg_header_t Head;␊ |
694 | ␉␉/* start of the kernel processed data */␊ |
695 | ␉␉mach_msg_body_t msgh_body;␊ |
696 | ␉␉mach_msg_ool_descriptor_t info;␊ |
697 | ␉␉/* end of the kernel processed data */␊ |
698 | ␉␉NDR_record_t NDR;␊ |
699 | ␉␉mach_msg_type_number_t infoCnt;␊ |
700 | ␉} __Reply__host_virtual_physical_table_info_t;␊ |
701 | #ifdef __MigPackStructs␊ |
702 | #pragma pack()␊ |
703 | #endif␊ |
704 | ␊ |
705 | #ifdef __MigPackStructs␊ |
706 | #pragma pack(4)␊ |
707 | #endif␊ |
708 | ␉typedef struct {␊ |
709 | ␉␉mach_msg_header_t Head;␊ |
710 | ␉␉/* start of the kernel processed data */␊ |
711 | ␉␉mach_msg_body_t msgh_body;␊ |
712 | ␉␉mach_msg_ool_descriptor_t info;␊ |
713 | ␉␉/* end of the kernel processed data */␊ |
714 | ␉␉NDR_record_t NDR;␊ |
715 | ␉␉mach_msg_type_number_t infoCnt;␊ |
716 | ␉} __Reply__host_ipc_hash_info_t;␊ |
717 | #ifdef __MigPackStructs␊ |
718 | #pragma pack()␊ |
719 | #endif␊ |
720 | ␊ |
721 | #ifdef __MigPackStructs␊ |
722 | #pragma pack(4)␊ |
723 | #endif␊ |
724 | ␉typedef struct {␊ |
725 | ␉␉mach_msg_header_t Head;␊ |
726 | ␉␉/* start of the kernel processed data */␊ |
727 | ␉␉mach_msg_body_t msgh_body;␊ |
728 | ␉␉mach_msg_port_descriptor_t default_set;␊ |
729 | ␉␉/* end of the kernel processed data */␊ |
730 | ␉} __Reply__processor_set_default_t;␊ |
731 | #ifdef __MigPackStructs␊ |
732 | #pragma pack()␊ |
733 | #endif␊ |
734 | ␊ |
735 | #ifdef __MigPackStructs␊ |
736 | #pragma pack(4)␊ |
737 | #endif␊ |
738 | ␉typedef struct {␊ |
739 | ␉␉mach_msg_header_t Head;␊ |
740 | ␉␉/* start of the kernel processed data */␊ |
741 | ␉␉mach_msg_body_t msgh_body;␊ |
742 | ␉␉mach_msg_port_descriptor_t new_set;␊ |
743 | ␉␉mach_msg_port_descriptor_t new_name;␊ |
744 | ␉␉/* end of the kernel processed data */␊ |
745 | ␉} __Reply__processor_set_create_t;␊ |
746 | #ifdef __MigPackStructs␊ |
747 | #pragma pack()␊ |
748 | #endif␊ |
749 | ␊ |
750 | #ifdef __MigPackStructs␊ |
751 | #pragma pack(4)␊ |
752 | #endif␊ |
753 | ␉typedef struct {␊ |
754 | ␉␉mach_msg_header_t Head;␊ |
755 | ␉␉/* start of the kernel processed data */␊ |
756 | ␉␉mach_msg_body_t msgh_body;␊ |
757 | ␉␉mach_msg_port_descriptor_t entry_handle;␊ |
758 | ␉␉/* end of the kernel processed data */␊ |
759 | ␉} __Reply__mach_memory_object_memory_entry_64_t;␊ |
760 | #ifdef __MigPackStructs␊ |
761 | #pragma pack()␊ |
762 | #endif␊ |
763 | ␊ |
764 | #ifdef __MigPackStructs␊ |
765 | #pragma pack(4)␊ |
766 | #endif␊ |
767 | ␉typedef struct {␊ |
768 | ␉␉mach_msg_header_t Head;␊ |
769 | ␉␉NDR_record_t NDR;␊ |
770 | ␉␉kern_return_t RetCode;␊ |
771 | ␉␉mach_msg_type_number_t host_info_outCnt;␊ |
772 | ␉␉integer_t host_info_out[15];␊ |
773 | ␉} __Reply__host_statistics_t;␊ |
774 | #ifdef __MigPackStructs␊ |
775 | #pragma pack()␊ |
776 | #endif␊ |
777 | ␊ |
778 | #ifdef __MigPackStructs␊ |
779 | #pragma pack(4)␊ |
780 | #endif␊ |
781 | ␉typedef struct {␊ |
782 | ␉␉mach_msg_header_t Head;␊ |
783 | ␉␉NDR_record_t NDR;␊ |
784 | ␉␉kern_return_t RetCode;␊ |
785 | ␉} __Reply__host_request_notification_t;␊ |
786 | #ifdef __MigPackStructs␊ |
787 | #pragma pack()␊ |
788 | #endif␊ |
789 | ␊ |
790 | #ifdef __MigPackStructs␊ |
791 | #pragma pack(4)␊ |
792 | #endif␊ |
793 | ␉typedef struct {␊ |
794 | ␉␉mach_msg_header_t Head;␊ |
795 | ␉␉/* start of the kernel processed data */␊ |
796 | ␉␉mach_msg_body_t msgh_body;␊ |
797 | ␉␉mach_msg_ool_descriptor_t lockgroup_info;␊ |
798 | ␉␉/* end of the kernel processed data */␊ |
799 | ␉␉NDR_record_t NDR;␊ |
800 | ␉␉mach_msg_type_number_t lockgroup_infoCnt;␊ |
801 | ␉} __Reply__host_lockgroup_info_t;␊ |
802 | #ifdef __MigPackStructs␊ |
803 | #pragma pack()␊ |
804 | #endif␊ |
805 | ␊ |
806 | #ifdef __MigPackStructs␊ |
807 | #pragma pack(4)␊ |
808 | #endif␊ |
809 | ␉typedef struct {␊ |
810 | ␉␉mach_msg_header_t Head;␊ |
811 | ␉␉NDR_record_t NDR;␊ |
812 | ␉␉kern_return_t RetCode;␊ |
813 | ␉␉mach_msg_type_number_t host_info64_outCnt;␊ |
814 | ␉␉integer_t host_info64_out[256];␊ |
815 | ␉} __Reply__host_statistics64_t;␊ |
816 | #ifdef __MigPackStructs␊ |
817 | #pragma pack()␊ |
818 | #endif␊ |
819 | #endif /* !__Reply__mach_host_subsystem__defined */␊ |
820 | ␊ |
821 | /* union of all replies */␊ |
822 | ␊ |
823 | #ifndef __ReplyUnion__mach_host_subsystem__defined␊ |
824 | #define __ReplyUnion__mach_host_subsystem__defined␊ |
825 | union __ReplyUnion__mach_host_subsystem {␊ |
826 | ␉__Reply__host_info_t Reply_host_info;␊ |
827 | ␉__Reply__host_kernel_version_t Reply_host_kernel_version;␊ |
828 | ␉__Reply___host_page_size_t Reply__host_page_size;␊ |
829 | ␉__Reply__mach_memory_object_memory_entry_t Reply_mach_memory_object_memory_entry;␊ |
830 | ␉__Reply__host_processor_info_t Reply_host_processor_info;␊ |
831 | ␉__Reply__host_get_io_master_t Reply_host_get_io_master;␊ |
832 | ␉__Reply__host_get_clock_service_t Reply_host_get_clock_service;␊ |
833 | ␉__Reply__kmod_get_info_t Reply_kmod_get_info;␊ |
834 | ␉__Reply__host_zone_info_t Reply_host_zone_info;␊ |
835 | ␉__Reply__host_virtual_physical_table_info_t Reply_host_virtual_physical_table_info;␊ |
836 | ␉__Reply__host_ipc_hash_info_t Reply_host_ipc_hash_info;␊ |
837 | ␉__Reply__processor_set_default_t Reply_processor_set_default;␊ |
838 | ␉__Reply__processor_set_create_t Reply_processor_set_create;␊ |
839 | ␉__Reply__mach_memory_object_memory_entry_64_t Reply_mach_memory_object_memory_entry_64;␊ |
840 | ␉__Reply__host_statistics_t Reply_host_statistics;␊ |
841 | ␉__Reply__host_request_notification_t Reply_host_request_notification;␊ |
842 | ␉__Reply__host_lockgroup_info_t Reply_host_lockgroup_info;␊ |
843 | ␉__Reply__host_statistics64_t Reply_host_statistics64;␊ |
844 | };␊ |
845 | #endif /* !__RequestUnion__mach_host_subsystem__defined */␊ |
846 | ␊ |
847 | #ifndef subsystem_to_name_map_mach_host␊ |
848 | #define subsystem_to_name_map_mach_host \␊ |
849 | { "host_info", 200 },\␊ |
850 | { "host_kernel_version", 201 },\␊ |
851 | { "_host_page_size", 202 },\␊ |
852 | { "mach_memory_object_memory_entry", 203 },\␊ |
853 | { "host_processor_info", 204 },\␊ |
854 | { "host_get_io_master", 205 },\␊ |
855 | { "host_get_clock_service", 206 },\␊ |
856 | { "kmod_get_info", 207 },\␊ |
857 | { "host_zone_info", 208 },\␊ |
858 | { "host_virtual_physical_table_info", 209 },\␊ |
859 | { "host_ipc_hash_info", 210 },\␊ |
860 | { "processor_set_default", 213 },\␊ |
861 | { "processor_set_create", 214 },\␊ |
862 | { "mach_memory_object_memory_entry_64", 215 },\␊ |
863 | { "host_statistics", 216 },\␊ |
864 | { "host_request_notification", 217 },\␊ |
865 | { "host_lockgroup_info", 218 },\␊ |
866 | { "host_statistics64", 219 }␊ |
867 | #endif␊ |
868 | ␊ |
869 | #ifdef __AfterMigUserHeader␊ |
870 | __AfterMigUserHeader␊ |
871 | #endif /* __AfterMigUserHeader */␊ |
872 | ␊ |
873 | #endif␉ /* _mach_host_user_ */␊ |
874 |