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