xref: /trueos/sys/sys/mach/mach_host_server.h (revision a5c674cfe4ac0caecd077667c8d9179460df2a79)
1 #ifndef	_mach_host_server_
2 #define	_mach_host_server_
3 
4 /* Module mach_host */
5 
6 #include <sys/cdefs.h>
7 #include <sys/types.h>
8 #ifdef _KERNEL
9 #include <sys/mach/ndr.h>
10 #include <sys/mach/kern_return.h>
11 #include <sys/mach/notify.h>
12 #include <sys/mach/mach_types.h>
13 #include <sys/mach/message.h>
14 #include <sys/mach/mig_errors.h>
15 #else /* !_KERNEL */
16 #include <string.h>
17 #include <mach/ndr.h>
18 #include <mach/boolean.h>
19 #include <mach/kern_return.h>
20 #include <mach/notify.h>
21 #include <mach/mach_types.h>
22 #include <mach/message.h>
23 #include <mach/mig_errors.h>
24 #endif /*_KERNEL */
25 
26 #ifdef AUTOTEST
27 #ifndef FUNCTION_PTR_T
28 #define FUNCTION_PTR_T
29 typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
30 typedef struct {
31         char            *name;
32         function_ptr_t  function;
33 } function_table_entry;
34 typedef function_table_entry   *function_table_t;
35 #endif /* FUNCTION_PTR_T */
36 #endif /* AUTOTEST */
37 
38 #ifndef	mach_host_MSG_COUNT
39 #define	mach_host_MSG_COUNT	25
40 #endif	/* mach_host_MSG_COUNT */
41 
42 #include <sys/mach/std_types.h>
43 #include <sys/mach/mig.h>
44 #include <sys/mach/ipc_sync.h>
45 #include <sys/mach/ipc/ipc_voucher.h>
46 #include <sys/mach/ipc_host.h>
47 #include <sys/mach/ipc_tt.h>
48 #include <sys/mach/ipc_mig.h>
49 #include <sys/mach/mig.h>
50 #include <sys/mach/mach_types.h>
51 #include <sys/mach/mach_types.h>
52 #include <sys/mach_debug/mach_debug_types.h>
53 
54 #ifdef __BeforeMigServerHeader
55 __BeforeMigServerHeader
56 #endif /* __BeforeMigServerHeader */
57 
58 
59 /* Routine host_info */
60 #ifdef	mig_external
61 mig_external
62 #else
63 extern
64 #endif	/* mig_external */
host_info(host,flavor,host_info_out,host_info_outCnt)65 kern_return_t host_info
66 #if	defined(LINTLIBRARY)
67     (host, flavor, host_info_out, host_info_outCnt)
68 	host_t host;
69 	host_flavor_t flavor;
70 	host_info_t host_info_out;
71 	mach_msg_type_number_t *host_info_outCnt;
72 { return host_info(host, flavor, host_info_out, host_info_outCnt); }
73 #else
74 (
75 	host_t host,
76 	host_flavor_t flavor,
77 	host_info_t host_info_out,
78 	mach_msg_type_number_t *host_info_outCnt
79 );
80 #endif	/* defined(LINTLIBRARY) */
81 
82 /* Routine host_kernel_version */
83 #ifdef	mig_external
84 mig_external
85 #else
86 extern
87 #endif	/* mig_external */
host_kernel_version(host,kernel_version)88 kern_return_t host_kernel_version
89 #if	defined(LINTLIBRARY)
90     (host, kernel_version)
91 	host_t host;
92 	kernel_version_t kernel_version;
93 { return host_kernel_version(host, kernel_version); }
94 #else
95 (
96 	host_t host,
97 	kernel_version_t kernel_version
98 );
99 #endif	/* defined(LINTLIBRARY) */
100 
101 /* Routine host_page_size */
102 #ifdef	mig_external
103 mig_external
104 #else
105 extern
106 #endif	/* mig_external */
host_page_size(host,out_page_size)107 kern_return_t host_page_size
108 #if	defined(LINTLIBRARY)
109     (host, out_page_size)
110 	host_t host;
111 	vm_size_t *out_page_size;
112 { return host_page_size(host, out_page_size); }
113 #else
114 (
115 	host_t host,
116 	vm_size_t *out_page_size
117 );
118 #endif	/* defined(LINTLIBRARY) */
119 
120 /* Routine mach_memory_object_memory_entry */
121 #ifdef	mig_external
122 mig_external
123 #else
124 extern
125 #endif	/* mig_external */
mach_memory_object_memory_entry(host,internal,size,permission,pager,entry_handle)126 kern_return_t mach_memory_object_memory_entry
127 #if	defined(LINTLIBRARY)
128     (host, internal, size, permission, pager, entry_handle)
129 	host_t host;
130 	boolean_t internal;
131 	vm_size_t size;
132 	vm_prot_t permission;
133 	memory_object_t pager;
134 	mach_port_t *entry_handle;
135 { return mach_memory_object_memory_entry(host, internal, size, permission, pager, entry_handle); }
136 #else
137 (
138 	host_t host,
139 	boolean_t internal,
140 	vm_size_t size,
141 	vm_prot_t permission,
142 	memory_object_t pager,
143 	mach_port_t *entry_handle
144 );
145 #endif	/* defined(LINTLIBRARY) */
146 
147 /* Routine host_processor_info */
148 #ifdef	mig_external
149 mig_external
150 #else
151 extern
152 #endif	/* mig_external */
host_processor_info(host,flavor,out_processor_count,out_processor_info,out_processor_infoCnt)153 kern_return_t host_processor_info
154 #if	defined(LINTLIBRARY)
155     (host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt)
156 	host_t host;
157 	processor_flavor_t flavor;
158 	natural_t *out_processor_count;
159 	processor_info_array_t *out_processor_info;
160 	mach_msg_type_number_t *out_processor_infoCnt;
161 { return host_processor_info(host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt); }
162 #else
163 (
164 	host_t host,
165 	processor_flavor_t flavor,
166 	natural_t *out_processor_count,
167 	processor_info_array_t *out_processor_info,
168 	mach_msg_type_number_t *out_processor_infoCnt
169 );
170 #endif	/* defined(LINTLIBRARY) */
171 
172 /* Routine host_get_clock_service */
173 #ifdef	mig_external
174 mig_external
175 #else
176 extern
177 #endif	/* mig_external */
host_get_clock_service(host,clock_id,clock_serv)178 kern_return_t host_get_clock_service
179 #if	defined(LINTLIBRARY)
180     (host, clock_id, clock_serv)
181 	host_t host;
182 	clock_id_t clock_id;
183 	clock_serv_t *clock_serv;
184 { return host_get_clock_service(host, clock_id, clock_serv); }
185 #else
186 (
187 	host_t host,
188 	clock_id_t clock_id,
189 	clock_serv_t *clock_serv
190 );
191 #endif	/* defined(LINTLIBRARY) */
192 
193 /* Routine host_virtual_physical_table_info */
194 #ifdef	mig_external
195 mig_external
196 #else
197 extern
198 #endif	/* mig_external */
host_virtual_physical_table_info(host,info,infoCnt)199 kern_return_t host_virtual_physical_table_info
200 #if	defined(LINTLIBRARY)
201     (host, info, infoCnt)
202 	host_t host;
203 	hash_info_bucket_array_t *info;
204 	mach_msg_type_number_t *infoCnt;
205 { return host_virtual_physical_table_info(host, info, infoCnt); }
206 #else
207 (
208 	host_t host,
209 	hash_info_bucket_array_t *info,
210 	mach_msg_type_number_t *infoCnt
211 );
212 #endif	/* defined(LINTLIBRARY) */
213 
214 /* Routine processor_set_default */
215 #ifdef	mig_external
216 mig_external
217 #else
218 extern
219 #endif	/* mig_external */
processor_set_default(host,default_set)220 kern_return_t processor_set_default
221 #if	defined(LINTLIBRARY)
222     (host, default_set)
223 	host_t host;
224 	processor_set_name_t *default_set;
225 { return processor_set_default(host, default_set); }
226 #else
227 (
228 	host_t host,
229 	processor_set_name_t *default_set
230 );
231 #endif	/* defined(LINTLIBRARY) */
232 
233 /* Routine processor_set_create */
234 #ifdef	mig_external
235 mig_external
236 #else
237 extern
238 #endif	/* mig_external */
processor_set_create(host,new_set,new_name)239 kern_return_t processor_set_create
240 #if	defined(LINTLIBRARY)
241     (host, new_set, new_name)
242 	host_t host;
243 	processor_set_t *new_set;
244 	processor_set_name_t *new_name;
245 { return processor_set_create(host, new_set, new_name); }
246 #else
247 (
248 	host_t host,
249 	processor_set_t *new_set,
250 	processor_set_name_t *new_name
251 );
252 #endif	/* defined(LINTLIBRARY) */
253 
254 /* Routine mach_memory_object_memory_entry_64 */
255 #ifdef	mig_external
256 mig_external
257 #else
258 extern
259 #endif	/* mig_external */
mach_memory_object_memory_entry_64(host,internal,size,permission,pager,entry_handle)260 kern_return_t mach_memory_object_memory_entry_64
261 #if	defined(LINTLIBRARY)
262     (host, internal, size, permission, pager, entry_handle)
263 	host_t host;
264 	boolean_t internal;
265 	memory_object_size_t size;
266 	vm_prot_t permission;
267 	memory_object_t pager;
268 	mach_port_t *entry_handle;
269 { return mach_memory_object_memory_entry_64(host, internal, size, permission, pager, entry_handle); }
270 #else
271 (
272 	host_t host,
273 	boolean_t internal,
274 	memory_object_size_t size,
275 	vm_prot_t permission,
276 	memory_object_t pager,
277 	mach_port_t *entry_handle
278 );
279 #endif	/* defined(LINTLIBRARY) */
280 
281 /* Routine host_statistics */
282 #ifdef	mig_external
283 mig_external
284 #else
285 extern
286 #endif	/* mig_external */
host_statistics(host_priv,flavor,host_info_out,host_info_outCnt)287 kern_return_t host_statistics
288 #if	defined(LINTLIBRARY)
289     (host_priv, flavor, host_info_out, host_info_outCnt)
290 	host_t host_priv;
291 	host_flavor_t flavor;
292 	host_info_t host_info_out;
293 	mach_msg_type_number_t *host_info_outCnt;
294 { return host_statistics(host_priv, flavor, host_info_out, host_info_outCnt); }
295 #else
296 (
297 	host_t host_priv,
298 	host_flavor_t flavor,
299 	host_info_t host_info_out,
300 	mach_msg_type_number_t *host_info_outCnt
301 );
302 #endif	/* defined(LINTLIBRARY) */
303 
304 /* Routine host_request_notification */
305 #ifdef	mig_external
306 mig_external
307 #else
308 extern
309 #endif	/* mig_external */
host_request_notification(host,notify_type,notify_port)310 kern_return_t host_request_notification
311 #if	defined(LINTLIBRARY)
312     (host, notify_type, notify_port)
313 	host_t host;
314 	host_flavor_t notify_type;
315 	mach_port_t notify_port;
316 { return host_request_notification(host, notify_type, notify_port); }
317 #else
318 (
319 	host_t host,
320 	host_flavor_t notify_type,
321 	mach_port_t notify_port
322 );
323 #endif	/* defined(LINTLIBRARY) */
324 
325 /* Routine host_statistics64 */
326 #ifdef	mig_external
327 mig_external
328 #else
329 extern
330 #endif	/* mig_external */
host_statistics64(host_priv,flavor,host_info64_out,host_info64_outCnt)331 kern_return_t host_statistics64
332 #if	defined(LINTLIBRARY)
333     (host_priv, flavor, host_info64_out, host_info64_outCnt)
334 	host_t host_priv;
335 	host_flavor_t flavor;
336 	host_info64_t host_info64_out;
337 	mach_msg_type_number_t *host_info64_outCnt;
338 { return host_statistics64(host_priv, flavor, host_info64_out, host_info64_outCnt); }
339 #else
340 (
341 	host_t host_priv,
342 	host_flavor_t flavor,
343 	host_info64_t host_info64_out,
344 	mach_msg_type_number_t *host_info64_outCnt
345 );
346 #endif	/* defined(LINTLIBRARY) */
347 
348 /* Routine mach_zone_info */
349 #ifdef	mig_external
350 mig_external
351 #else
352 extern
353 #endif	/* mig_external */
mach_zone_info(host,names,namesCnt,info,infoCnt)354 kern_return_t mach_zone_info
355 #if	defined(LINTLIBRARY)
356     (host, names, namesCnt, info, infoCnt)
357 	host_priv_t host;
358 	mach_zone_name_array_t *names;
359 	mach_msg_type_number_t *namesCnt;
360 	mach_zone_info_array_t *info;
361 	mach_msg_type_number_t *infoCnt;
362 { return mach_zone_info(host, names, namesCnt, info, infoCnt); }
363 #else
364 (
365 	host_priv_t host,
366 	mach_zone_name_array_t *names,
367 	mach_msg_type_number_t *namesCnt,
368 	mach_zone_info_array_t *info,
369 	mach_msg_type_number_t *infoCnt
370 );
371 #endif	/* defined(LINTLIBRARY) */
372 
373 /* Routine host_create_mach_voucher */
374 #ifdef	mig_external
375 mig_external
376 #else
377 extern
378 #endif	/* mig_external */
host_create_mach_voucher(host,recipes,recipesCnt,voucher)379 kern_return_t host_create_mach_voucher
380 #if	defined(LINTLIBRARY)
381     (host, recipes, recipesCnt, voucher)
382 	host_t host;
383 	mach_voucher_attr_raw_recipe_array_t recipes;
384 	mach_msg_type_number_t recipesCnt;
385 	ipc_voucher_t *voucher;
386 { return host_create_mach_voucher(host, recipes, recipesCnt, voucher); }
387 #else
388 (
389 	host_t host,
390 	mach_voucher_attr_raw_recipe_array_t recipes,
391 	mach_msg_type_number_t recipesCnt,
392 	ipc_voucher_t *voucher
393 );
394 #endif	/* defined(LINTLIBRARY) */
395 
396 /* Routine host_register_mach_voucher_attr_manager */
397 #ifdef	mig_external
398 mig_external
399 #else
400 extern
401 #endif	/* mig_external */
host_register_mach_voucher_attr_manager(host,attr_manager,default_value,new_key,new_attr_control)402 kern_return_t host_register_mach_voucher_attr_manager
403 #if	defined(LINTLIBRARY)
404     (host, attr_manager, default_value, new_key, new_attr_control)
405 	host_t host;
406 	mach_voucher_attr_manager_t attr_manager;
407 	mach_voucher_attr_value_handle_t default_value;
408 	mach_voucher_attr_key_t *new_key;
409 	ipc_voucher_attr_control_t *new_attr_control;
410 { return host_register_mach_voucher_attr_manager(host, attr_manager, default_value, new_key, new_attr_control); }
411 #else
412 (
413 	host_t host,
414 	mach_voucher_attr_manager_t attr_manager,
415 	mach_voucher_attr_value_handle_t default_value,
416 	mach_voucher_attr_key_t *new_key,
417 	ipc_voucher_attr_control_t *new_attr_control
418 );
419 #endif	/* defined(LINTLIBRARY) */
420 
421 /* Routine host_register_well_known_mach_voucher_attr_manager */
422 #ifdef	mig_external
423 mig_external
424 #else
425 extern
426 #endif	/* mig_external */
host_register_well_known_mach_voucher_attr_manager(host,attr_manager,default_value,key,new_attr_control)427 kern_return_t host_register_well_known_mach_voucher_attr_manager
428 #if	defined(LINTLIBRARY)
429     (host, attr_manager, default_value, key, new_attr_control)
430 	host_t host;
431 	mach_voucher_attr_manager_t attr_manager;
432 	mach_voucher_attr_value_handle_t default_value;
433 	mach_voucher_attr_key_t key;
434 	ipc_voucher_attr_control_t *new_attr_control;
435 { return host_register_well_known_mach_voucher_attr_manager(host, attr_manager, default_value, key, new_attr_control); }
436 #else
437 (
438 	host_t host,
439 	mach_voucher_attr_manager_t attr_manager,
440 	mach_voucher_attr_value_handle_t default_value,
441 	mach_voucher_attr_key_t key,
442 	ipc_voucher_attr_control_t *new_attr_control
443 );
444 #endif	/* defined(LINTLIBRARY) */
445 
446 /* Routine host_info */
447 #ifdef	mig_external
448 mig_external
449 #else
450 extern
451 #endif	/* mig_external */
host_info(host,flavor,host_info_out,host_info_outCnt)452 kern_return_t host_info
453 #if	defined(LINTLIBRARY)
454     (host, flavor, host_info_out, host_info_outCnt)
455 	host_t host;
456 	host_flavor_t flavor;
457 	host_info_t host_info_out;
458 	mach_msg_type_number_t *host_info_outCnt;
459 { return host_info(host, flavor, host_info_out, host_info_outCnt); }
460 #else
461 (
462 	host_t host,
463 	host_flavor_t flavor,
464 	host_info_t host_info_out,
465 	mach_msg_type_number_t *host_info_outCnt
466 );
467 #endif	/* defined(LINTLIBRARY) */
468 
469 /* Routine host_kernel_version */
470 #ifdef	mig_external
471 mig_external
472 #else
473 extern
474 #endif	/* mig_external */
host_kernel_version(host,kernel_version)475 kern_return_t host_kernel_version
476 #if	defined(LINTLIBRARY)
477     (host, kernel_version)
478 	host_t host;
479 	kernel_version_t kernel_version;
480 { return host_kernel_version(host, kernel_version); }
481 #else
482 (
483 	host_t host,
484 	kernel_version_t kernel_version
485 );
486 #endif	/* defined(LINTLIBRARY) */
487 
488 /* Routine host_page_size */
489 #ifdef	mig_external
490 mig_external
491 #else
492 extern
493 #endif	/* mig_external */
host_page_size(host,out_page_size)494 kern_return_t host_page_size
495 #if	defined(LINTLIBRARY)
496     (host, out_page_size)
497 	host_t host;
498 	vm_size_t *out_page_size;
499 { return host_page_size(host, out_page_size); }
500 #else
501 (
502 	host_t host,
503 	vm_size_t *out_page_size
504 );
505 #endif	/* defined(LINTLIBRARY) */
506 
507 /* Routine mach_memory_object_memory_entry */
508 #ifdef	mig_external
509 mig_external
510 #else
511 extern
512 #endif	/* mig_external */
mach_memory_object_memory_entry(host,internal,size,permission,pager,entry_handle)513 kern_return_t mach_memory_object_memory_entry
514 #if	defined(LINTLIBRARY)
515     (host, internal, size, permission, pager, entry_handle)
516 	host_t host;
517 	boolean_t internal;
518 	vm_size_t size;
519 	vm_prot_t permission;
520 	memory_object_t pager;
521 	mach_port_t *entry_handle;
522 { return mach_memory_object_memory_entry(host, internal, size, permission, pager, entry_handle); }
523 #else
524 (
525 	host_t host,
526 	boolean_t internal,
527 	vm_size_t size,
528 	vm_prot_t permission,
529 	memory_object_t pager,
530 	mach_port_t *entry_handle
531 );
532 #endif	/* defined(LINTLIBRARY) */
533 
534 /* Routine host_processor_info */
535 #ifdef	mig_external
536 mig_external
537 #else
538 extern
539 #endif	/* mig_external */
host_processor_info(host,flavor,out_processor_count,out_processor_info,out_processor_infoCnt)540 kern_return_t host_processor_info
541 #if	defined(LINTLIBRARY)
542     (host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt)
543 	host_t host;
544 	processor_flavor_t flavor;
545 	natural_t *out_processor_count;
546 	processor_info_array_t *out_processor_info;
547 	mach_msg_type_number_t *out_processor_infoCnt;
548 { return host_processor_info(host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt); }
549 #else
550 (
551 	host_t host,
552 	processor_flavor_t flavor,
553 	natural_t *out_processor_count,
554 	processor_info_array_t *out_processor_info,
555 	mach_msg_type_number_t *out_processor_infoCnt
556 );
557 #endif	/* defined(LINTLIBRARY) */
558 
559 /* Routine host_get_clock_service */
560 #ifdef	mig_external
561 mig_external
562 #else
563 extern
564 #endif	/* mig_external */
host_get_clock_service(host,clock_id,clock_serv)565 kern_return_t host_get_clock_service
566 #if	defined(LINTLIBRARY)
567     (host, clock_id, clock_serv)
568 	host_t host;
569 	clock_id_t clock_id;
570 	clock_serv_t *clock_serv;
571 { return host_get_clock_service(host, clock_id, clock_serv); }
572 #else
573 (
574 	host_t host,
575 	clock_id_t clock_id,
576 	clock_serv_t *clock_serv
577 );
578 #endif	/* defined(LINTLIBRARY) */
579 
580 /* Routine host_virtual_physical_table_info */
581 #ifdef	mig_external
582 mig_external
583 #else
584 extern
585 #endif	/* mig_external */
host_virtual_physical_table_info(host,info,infoCnt)586 kern_return_t host_virtual_physical_table_info
587 #if	defined(LINTLIBRARY)
588     (host, info, infoCnt)
589 	host_t host;
590 	hash_info_bucket_array_t *info;
591 	mach_msg_type_number_t *infoCnt;
592 { return host_virtual_physical_table_info(host, info, infoCnt); }
593 #else
594 (
595 	host_t host,
596 	hash_info_bucket_array_t *info,
597 	mach_msg_type_number_t *infoCnt
598 );
599 #endif	/* defined(LINTLIBRARY) */
600 
601 /* Routine processor_set_default */
602 #ifdef	mig_external
603 mig_external
604 #else
605 extern
606 #endif	/* mig_external */
processor_set_default(host,default_set)607 kern_return_t processor_set_default
608 #if	defined(LINTLIBRARY)
609     (host, default_set)
610 	host_t host;
611 	processor_set_name_t *default_set;
612 { return processor_set_default(host, default_set); }
613 #else
614 (
615 	host_t host,
616 	processor_set_name_t *default_set
617 );
618 #endif	/* defined(LINTLIBRARY) */
619 
620 /* Routine processor_set_create */
621 #ifdef	mig_external
622 mig_external
623 #else
624 extern
625 #endif	/* mig_external */
processor_set_create(host,new_set,new_name)626 kern_return_t processor_set_create
627 #if	defined(LINTLIBRARY)
628     (host, new_set, new_name)
629 	host_t host;
630 	processor_set_t *new_set;
631 	processor_set_name_t *new_name;
632 { return processor_set_create(host, new_set, new_name); }
633 #else
634 (
635 	host_t host,
636 	processor_set_t *new_set,
637 	processor_set_name_t *new_name
638 );
639 #endif	/* defined(LINTLIBRARY) */
640 
641 /* Routine mach_memory_object_memory_entry_64 */
642 #ifdef	mig_external
643 mig_external
644 #else
645 extern
646 #endif	/* mig_external */
mach_memory_object_memory_entry_64(host,internal,size,permission,pager,entry_handle)647 kern_return_t mach_memory_object_memory_entry_64
648 #if	defined(LINTLIBRARY)
649     (host, internal, size, permission, pager, entry_handle)
650 	host_t host;
651 	boolean_t internal;
652 	memory_object_size_t size;
653 	vm_prot_t permission;
654 	memory_object_t pager;
655 	mach_port_t *entry_handle;
656 { return mach_memory_object_memory_entry_64(host, internal, size, permission, pager, entry_handle); }
657 #else
658 (
659 	host_t host,
660 	boolean_t internal,
661 	memory_object_size_t size,
662 	vm_prot_t permission,
663 	memory_object_t pager,
664 	mach_port_t *entry_handle
665 );
666 #endif	/* defined(LINTLIBRARY) */
667 
668 /* Routine host_statistics */
669 #ifdef	mig_external
670 mig_external
671 #else
672 extern
673 #endif	/* mig_external */
host_statistics(host_priv,flavor,host_info_out,host_info_outCnt)674 kern_return_t host_statistics
675 #if	defined(LINTLIBRARY)
676     (host_priv, flavor, host_info_out, host_info_outCnt)
677 	host_t host_priv;
678 	host_flavor_t flavor;
679 	host_info_t host_info_out;
680 	mach_msg_type_number_t *host_info_outCnt;
681 { return host_statistics(host_priv, flavor, host_info_out, host_info_outCnt); }
682 #else
683 (
684 	host_t host_priv,
685 	host_flavor_t flavor,
686 	host_info_t host_info_out,
687 	mach_msg_type_number_t *host_info_outCnt
688 );
689 #endif	/* defined(LINTLIBRARY) */
690 
691 /* Routine host_request_notification */
692 #ifdef	mig_external
693 mig_external
694 #else
695 extern
696 #endif	/* mig_external */
host_request_notification(host,notify_type,notify_port)697 kern_return_t host_request_notification
698 #if	defined(LINTLIBRARY)
699     (host, notify_type, notify_port)
700 	host_t host;
701 	host_flavor_t notify_type;
702 	mach_port_t notify_port;
703 { return host_request_notification(host, notify_type, notify_port); }
704 #else
705 (
706 	host_t host,
707 	host_flavor_t notify_type,
708 	mach_port_t notify_port
709 );
710 #endif	/* defined(LINTLIBRARY) */
711 
712 /* Routine host_statistics64 */
713 #ifdef	mig_external
714 mig_external
715 #else
716 extern
717 #endif	/* mig_external */
host_statistics64(host_priv,flavor,host_info64_out,host_info64_outCnt)718 kern_return_t host_statistics64
719 #if	defined(LINTLIBRARY)
720     (host_priv, flavor, host_info64_out, host_info64_outCnt)
721 	host_t host_priv;
722 	host_flavor_t flavor;
723 	host_info64_t host_info64_out;
724 	mach_msg_type_number_t *host_info64_outCnt;
725 { return host_statistics64(host_priv, flavor, host_info64_out, host_info64_outCnt); }
726 #else
727 (
728 	host_t host_priv,
729 	host_flavor_t flavor,
730 	host_info64_t host_info64_out,
731 	mach_msg_type_number_t *host_info64_outCnt
732 );
733 #endif	/* defined(LINTLIBRARY) */
734 
735 /* Routine mach_zone_info */
736 #ifdef	mig_external
737 mig_external
738 #else
739 extern
740 #endif	/* mig_external */
mach_zone_info(host,names,namesCnt,info,infoCnt)741 kern_return_t mach_zone_info
742 #if	defined(LINTLIBRARY)
743     (host, names, namesCnt, info, infoCnt)
744 	host_priv_t host;
745 	mach_zone_name_array_t *names;
746 	mach_msg_type_number_t *namesCnt;
747 	mach_zone_info_array_t *info;
748 	mach_msg_type_number_t *infoCnt;
749 { return mach_zone_info(host, names, namesCnt, info, infoCnt); }
750 #else
751 (
752 	host_priv_t host,
753 	mach_zone_name_array_t *names,
754 	mach_msg_type_number_t *namesCnt,
755 	mach_zone_info_array_t *info,
756 	mach_msg_type_number_t *infoCnt
757 );
758 #endif	/* defined(LINTLIBRARY) */
759 
760 /* Routine host_create_mach_voucher */
761 #ifdef	mig_external
762 mig_external
763 #else
764 extern
765 #endif	/* mig_external */
host_create_mach_voucher(host,recipes,recipesCnt,voucher)766 kern_return_t host_create_mach_voucher
767 #if	defined(LINTLIBRARY)
768     (host, recipes, recipesCnt, voucher)
769 	host_t host;
770 	mach_voucher_attr_raw_recipe_array_t recipes;
771 	mach_msg_type_number_t recipesCnt;
772 	ipc_voucher_t *voucher;
773 { return host_create_mach_voucher(host, recipes, recipesCnt, voucher); }
774 #else
775 (
776 	host_t host,
777 	mach_voucher_attr_raw_recipe_array_t recipes,
778 	mach_msg_type_number_t recipesCnt,
779 	ipc_voucher_t *voucher
780 );
781 #endif	/* defined(LINTLIBRARY) */
782 
783 /* Routine host_register_mach_voucher_attr_manager */
784 #ifdef	mig_external
785 mig_external
786 #else
787 extern
788 #endif	/* mig_external */
host_register_mach_voucher_attr_manager(host,attr_manager,default_value,new_key,new_attr_control)789 kern_return_t host_register_mach_voucher_attr_manager
790 #if	defined(LINTLIBRARY)
791     (host, attr_manager, default_value, new_key, new_attr_control)
792 	host_t host;
793 	mach_voucher_attr_manager_t attr_manager;
794 	mach_voucher_attr_value_handle_t default_value;
795 	mach_voucher_attr_key_t *new_key;
796 	ipc_voucher_attr_control_t *new_attr_control;
797 { return host_register_mach_voucher_attr_manager(host, attr_manager, default_value, new_key, new_attr_control); }
798 #else
799 (
800 	host_t host,
801 	mach_voucher_attr_manager_t attr_manager,
802 	mach_voucher_attr_value_handle_t default_value,
803 	mach_voucher_attr_key_t *new_key,
804 	ipc_voucher_attr_control_t *new_attr_control
805 );
806 #endif	/* defined(LINTLIBRARY) */
807 
808 /* Routine host_register_well_known_mach_voucher_attr_manager */
809 #ifdef	mig_external
810 mig_external
811 #else
812 extern
813 #endif	/* mig_external */
host_register_well_known_mach_voucher_attr_manager(host,attr_manager,default_value,key,new_attr_control)814 kern_return_t host_register_well_known_mach_voucher_attr_manager
815 #if	defined(LINTLIBRARY)
816     (host, attr_manager, default_value, key, new_attr_control)
817 	host_t host;
818 	mach_voucher_attr_manager_t attr_manager;
819 	mach_voucher_attr_value_handle_t default_value;
820 	mach_voucher_attr_key_t key;
821 	ipc_voucher_attr_control_t *new_attr_control;
822 { return host_register_well_known_mach_voucher_attr_manager(host, attr_manager, default_value, key, new_attr_control); }
823 #else
824 (
825 	host_t host,
826 	mach_voucher_attr_manager_t attr_manager,
827 	mach_voucher_attr_value_handle_t default_value,
828 	mach_voucher_attr_key_t key,
829 	ipc_voucher_attr_control_t *new_attr_control
830 );
831 #endif	/* defined(LINTLIBRARY) */
832 
833 #ifdef	mig_external
834 mig_external
835 #else
836 extern
837 #endif	/* mig_external */
838 boolean_t mach_host_server(
839 		mach_msg_header_t *InHeadP,
840 		mach_msg_header_t *OutHeadP);
841 
842 #ifdef	mig_external
843 mig_external
844 #else
845 extern
846 #endif	/* mig_external */
847 mig_routine_t mach_host_server_routine(
848 		mach_msg_header_t *InHeadP);
849 
850 
851 /* Description of this subsystem, for use in direct RPC */
852 extern const struct mach_host_subsystem {
853 	mig_server_routine_t	server;	/* Server routine */
854 	mach_msg_id_t	start;	/* Min routine number */
855 	mach_msg_id_t	end;	/* Max routine number + 1 */
856 	unsigned int	maxsize;	/* Max msg size */
857 	vm_address_t	reserved;	/* Reserved */
858 	struct routine_descriptor	/*Array of routine descriptors */
859 		routine[25];
860 } mach_host_subsystem;
861 
862 /* typedefs for all requests */
863 
864 #ifndef __Request__mach_host_subsystem__defined
865 #define __Request__mach_host_subsystem__defined
866 
867 #ifdef  __MigPackStructs
868 #pragma pack(4)
869 #endif
870 	typedef struct {
871 		mach_msg_header_t Head;
872 		/* start of the kernel processed data */
873 		mach_msg_body_t msgh_body;
874 		/* end of the kernel processed data */
875 		NDR_record_t NDR;
876 		host_flavor_t flavor;
877 		mach_msg_type_number_t host_info_outCnt;
878 	} __Request__host_info_t;
879 #ifdef  __MigPackStructs
880 #pragma pack()
881 #endif
882 
883 #ifdef  __MigPackStructs
884 #pragma pack(4)
885 #endif
886 	typedef struct {
887 		mach_msg_header_t Head;
888 		/* start of the kernel processed data */
889 		mach_msg_body_t msgh_body;
890 		/* end of the kernel processed data */
891 	} __Request__host_kernel_version_t;
892 #ifdef  __MigPackStructs
893 #pragma pack()
894 #endif
895 
896 #ifdef  __MigPackStructs
897 #pragma pack(4)
898 #endif
899 	typedef struct {
900 		mach_msg_header_t Head;
901 		/* start of the kernel processed data */
902 		mach_msg_body_t msgh_body;
903 		/* end of the kernel processed data */
904 	} __Request__host_page_size_t;
905 #ifdef  __MigPackStructs
906 #pragma pack()
907 #endif
908 
909 #ifdef  __MigPackStructs
910 #pragma pack(4)
911 #endif
912 	typedef struct {
913 		mach_msg_header_t Head;
914 		/* start of the kernel processed data */
915 		mach_msg_body_t msgh_body;
916 		mach_msg_port_descriptor_t pager;
917 		/* end of the kernel processed data */
918 		NDR_record_t NDR;
919 		boolean_t internal;
920 		vm_size_t size;
921 		vm_prot_t permission;
922 	} __Request__mach_memory_object_memory_entry_t;
923 #ifdef  __MigPackStructs
924 #pragma pack()
925 #endif
926 
927 #ifdef  __MigPackStructs
928 #pragma pack(4)
929 #endif
930 	typedef struct {
931 		mach_msg_header_t Head;
932 		/* start of the kernel processed data */
933 		mach_msg_body_t msgh_body;
934 		/* end of the kernel processed data */
935 		NDR_record_t NDR;
936 		processor_flavor_t flavor;
937 	} __Request__host_processor_info_t;
938 #ifdef  __MigPackStructs
939 #pragma pack()
940 #endif
941 
942 #ifdef  __MigPackStructs
943 #pragma pack(4)
944 #endif
945 	typedef struct {
946 		mach_msg_header_t Head;
947 		/* start of the kernel processed data */
948 		mach_msg_body_t msgh_body;
949 		/* end of the kernel processed data */
950 		NDR_record_t NDR;
951 		clock_id_t clock_id;
952 	} __Request__host_get_clock_service_t;
953 #ifdef  __MigPackStructs
954 #pragma pack()
955 #endif
956 
957 #ifdef  __MigPackStructs
958 #pragma pack(4)
959 #endif
960 	typedef struct {
961 		mach_msg_header_t Head;
962 		/* start of the kernel processed data */
963 		mach_msg_body_t msgh_body;
964 		/* end of the kernel processed data */
965 	} __Request__host_virtual_physical_table_info_t;
966 #ifdef  __MigPackStructs
967 #pragma pack()
968 #endif
969 
970 #ifdef  __MigPackStructs
971 #pragma pack(4)
972 #endif
973 	typedef struct {
974 		mach_msg_header_t Head;
975 		/* start of the kernel processed data */
976 		mach_msg_body_t msgh_body;
977 		/* end of the kernel processed data */
978 	} __Request__processor_set_default_t;
979 #ifdef  __MigPackStructs
980 #pragma pack()
981 #endif
982 
983 #ifdef  __MigPackStructs
984 #pragma pack(4)
985 #endif
986 	typedef struct {
987 		mach_msg_header_t Head;
988 		/* start of the kernel processed data */
989 		mach_msg_body_t msgh_body;
990 		/* end of the kernel processed data */
991 	} __Request__processor_set_create_t;
992 #ifdef  __MigPackStructs
993 #pragma pack()
994 #endif
995 
996 #ifdef  __MigPackStructs
997 #pragma pack(4)
998 #endif
999 	typedef struct {
1000 		mach_msg_header_t Head;
1001 		/* start of the kernel processed data */
1002 		mach_msg_body_t msgh_body;
1003 		mach_msg_port_descriptor_t pager;
1004 		/* end of the kernel processed data */
1005 		NDR_record_t NDR;
1006 		boolean_t internal;
1007 		memory_object_size_t size;
1008 		vm_prot_t permission;
1009 	} __Request__mach_memory_object_memory_entry_64_t;
1010 #ifdef  __MigPackStructs
1011 #pragma pack()
1012 #endif
1013 
1014 #ifdef  __MigPackStructs
1015 #pragma pack(4)
1016 #endif
1017 	typedef struct {
1018 		mach_msg_header_t Head;
1019 		/* start of the kernel processed data */
1020 		mach_msg_body_t msgh_body;
1021 		/* end of the kernel processed data */
1022 		NDR_record_t NDR;
1023 		host_flavor_t flavor;
1024 		mach_msg_type_number_t host_info_outCnt;
1025 	} __Request__host_statistics_t;
1026 #ifdef  __MigPackStructs
1027 #pragma pack()
1028 #endif
1029 
1030 #ifdef  __MigPackStructs
1031 #pragma pack(4)
1032 #endif
1033 	typedef struct {
1034 		mach_msg_header_t Head;
1035 		/* start of the kernel processed data */
1036 		mach_msg_body_t msgh_body;
1037 		mach_msg_port_descriptor_t notify_port;
1038 		/* end of the kernel processed data */
1039 		NDR_record_t NDR;
1040 		host_flavor_t notify_type;
1041 	} __Request__host_request_notification_t;
1042 #ifdef  __MigPackStructs
1043 #pragma pack()
1044 #endif
1045 
1046 #ifdef  __MigPackStructs
1047 #pragma pack(4)
1048 #endif
1049 	typedef struct {
1050 		mach_msg_header_t Head;
1051 		/* start of the kernel processed data */
1052 		mach_msg_body_t msgh_body;
1053 		/* end of the kernel processed data */
1054 		NDR_record_t NDR;
1055 		host_flavor_t flavor;
1056 		mach_msg_type_number_t host_info64_outCnt;
1057 	} __Request__host_statistics64_t;
1058 #ifdef  __MigPackStructs
1059 #pragma pack()
1060 #endif
1061 
1062 #ifdef  __MigPackStructs
1063 #pragma pack(4)
1064 #endif
1065 	typedef struct {
1066 		mach_msg_header_t Head;
1067 		/* start of the kernel processed data */
1068 		mach_msg_body_t msgh_body;
1069 		/* end of the kernel processed data */
1070 	} __Request__mach_zone_info_t;
1071 #ifdef  __MigPackStructs
1072 #pragma pack()
1073 #endif
1074 
1075 #ifdef  __MigPackStructs
1076 #pragma pack(4)
1077 #endif
1078 	typedef struct {
1079 		mach_msg_header_t Head;
1080 		/* start of the kernel processed data */
1081 		mach_msg_body_t msgh_body;
1082 		/* end of the kernel processed data */
1083 		NDR_record_t NDR;
1084 		mach_msg_type_number_t recipesCnt;
1085 		uint8_t recipes[5120];
1086 	} __Request__host_create_mach_voucher_t;
1087 #ifdef  __MigPackStructs
1088 #pragma pack()
1089 #endif
1090 
1091 #ifdef  __MigPackStructs
1092 #pragma pack(4)
1093 #endif
1094 	typedef struct {
1095 		mach_msg_header_t Head;
1096 		/* start of the kernel processed data */
1097 		mach_msg_body_t msgh_body;
1098 		mach_msg_port_descriptor_t attr_manager;
1099 		/* end of the kernel processed data */
1100 		NDR_record_t NDR;
1101 		mach_voucher_attr_value_handle_t default_value;
1102 	} __Request__host_register_mach_voucher_attr_manager_t;
1103 #ifdef  __MigPackStructs
1104 #pragma pack()
1105 #endif
1106 
1107 #ifdef  __MigPackStructs
1108 #pragma pack(4)
1109 #endif
1110 	typedef struct {
1111 		mach_msg_header_t Head;
1112 		/* start of the kernel processed data */
1113 		mach_msg_body_t msgh_body;
1114 		mach_msg_port_descriptor_t attr_manager;
1115 		/* end of the kernel processed data */
1116 		NDR_record_t NDR;
1117 		mach_voucher_attr_value_handle_t default_value;
1118 		mach_voucher_attr_key_t key;
1119 	} __Request__host_register_well_known_mach_voucher_attr_manager_t;
1120 #ifdef  __MigPackStructs
1121 #pragma pack()
1122 #endif
1123 #endif /* !__Request__mach_host_subsystem__defined */
1124 
1125 
1126 /* union of all requests */
1127 
1128 #ifndef __RequestUnion__mach_host_subsystem__defined
1129 #define __RequestUnion__mach_host_subsystem__defined
1130 union __RequestUnion__mach_host_subsystem {
1131 	__Request__host_info_t Request_host_info;
1132 	__Request__host_kernel_version_t Request_host_kernel_version;
1133 	__Request__host_page_size_t Request_host_page_size;
1134 	__Request__mach_memory_object_memory_entry_t Request_mach_memory_object_memory_entry;
1135 	__Request__host_processor_info_t Request_host_processor_info;
1136 	__Request__host_get_clock_service_t Request_host_get_clock_service;
1137 	__Request__host_virtual_physical_table_info_t Request_host_virtual_physical_table_info;
1138 	__Request__processor_set_default_t Request_processor_set_default;
1139 	__Request__processor_set_create_t Request_processor_set_create;
1140 	__Request__mach_memory_object_memory_entry_64_t Request_mach_memory_object_memory_entry_64;
1141 	__Request__host_statistics_t Request_host_statistics;
1142 	__Request__host_request_notification_t Request_host_request_notification;
1143 	__Request__host_statistics64_t Request_host_statistics64;
1144 	__Request__mach_zone_info_t Request_mach_zone_info;
1145 	__Request__host_create_mach_voucher_t Request_host_create_mach_voucher;
1146 	__Request__host_register_mach_voucher_attr_manager_t Request_host_register_mach_voucher_attr_manager;
1147 	__Request__host_register_well_known_mach_voucher_attr_manager_t Request_host_register_well_known_mach_voucher_attr_manager;
1148 };
1149 #endif /* __RequestUnion__mach_host_subsystem__defined */
1150 /* typedefs for all replies */
1151 
1152 #ifndef __Reply__mach_host_subsystem__defined
1153 #define __Reply__mach_host_subsystem__defined
1154 
1155 #ifdef  __MigPackStructs
1156 #pragma pack(4)
1157 #endif
1158 	typedef struct {
1159 		mach_msg_header_t Head;
1160 		NDR_record_t NDR;
1161 		kern_return_t RetCode;
1162 		mach_msg_type_number_t host_info_outCnt;
1163 		integer_t host_info_out[68];
1164 	} __Reply__host_info_t;
1165 #ifdef  __MigPackStructs
1166 #pragma pack()
1167 #endif
1168 
1169 #ifdef  __MigPackStructs
1170 #pragma pack(4)
1171 #endif
1172 	typedef struct {
1173 		mach_msg_header_t Head;
1174 		NDR_record_t NDR;
1175 		kern_return_t RetCode;
1176 		mach_msg_type_number_t kernel_versionOffset; /* MiG doesn't use it */
1177 		mach_msg_type_number_t kernel_versionCnt;
1178 		char kernel_version[512];
1179 	} __Reply__host_kernel_version_t;
1180 #ifdef  __MigPackStructs
1181 #pragma pack()
1182 #endif
1183 
1184 #ifdef  __MigPackStructs
1185 #pragma pack(4)
1186 #endif
1187 	typedef struct {
1188 		mach_msg_header_t Head;
1189 		NDR_record_t NDR;
1190 		kern_return_t RetCode;
1191 		vm_size_t out_page_size;
1192 	} __Reply__host_page_size_t;
1193 #ifdef  __MigPackStructs
1194 #pragma pack()
1195 #endif
1196 
1197 #ifdef  __MigPackStructs
1198 #pragma pack(4)
1199 #endif
1200 	typedef struct {
1201 		mach_msg_header_t Head;
1202 		/* start of the kernel processed data */
1203 		mach_msg_body_t msgh_body;
1204 		mach_msg_port_descriptor_t entry_handle;
1205 		/* end of the kernel processed data */
1206 	} __Reply__mach_memory_object_memory_entry_t;
1207 #ifdef  __MigPackStructs
1208 #pragma pack()
1209 #endif
1210 
1211 #ifdef  __MigPackStructs
1212 #pragma pack(4)
1213 #endif
1214 	typedef struct {
1215 		mach_msg_header_t Head;
1216 		/* start of the kernel processed data */
1217 		mach_msg_body_t msgh_body;
1218 		mach_msg_ool_descriptor_t out_processor_info;
1219 		/* end of the kernel processed data */
1220 		NDR_record_t NDR;
1221 		natural_t out_processor_count;
1222 		mach_msg_type_number_t out_processor_infoCnt;
1223 	} __Reply__host_processor_info_t;
1224 #ifdef  __MigPackStructs
1225 #pragma pack()
1226 #endif
1227 
1228 #ifdef  __MigPackStructs
1229 #pragma pack(4)
1230 #endif
1231 	typedef struct {
1232 		mach_msg_header_t Head;
1233 		/* start of the kernel processed data */
1234 		mach_msg_body_t msgh_body;
1235 		mach_msg_port_descriptor_t clock_serv;
1236 		/* end of the kernel processed data */
1237 	} __Reply__host_get_clock_service_t;
1238 #ifdef  __MigPackStructs
1239 #pragma pack()
1240 #endif
1241 
1242 #ifdef  __MigPackStructs
1243 #pragma pack(4)
1244 #endif
1245 	typedef struct {
1246 		mach_msg_header_t Head;
1247 		/* start of the kernel processed data */
1248 		mach_msg_body_t msgh_body;
1249 		mach_msg_ool_descriptor_t info;
1250 		/* end of the kernel processed data */
1251 		NDR_record_t NDR;
1252 		mach_msg_type_number_t infoCnt;
1253 	} __Reply__host_virtual_physical_table_info_t;
1254 #ifdef  __MigPackStructs
1255 #pragma pack()
1256 #endif
1257 
1258 #ifdef  __MigPackStructs
1259 #pragma pack(4)
1260 #endif
1261 	typedef struct {
1262 		mach_msg_header_t Head;
1263 		/* start of the kernel processed data */
1264 		mach_msg_body_t msgh_body;
1265 		mach_msg_port_descriptor_t default_set;
1266 		/* end of the kernel processed data */
1267 	} __Reply__processor_set_default_t;
1268 #ifdef  __MigPackStructs
1269 #pragma pack()
1270 #endif
1271 
1272 #ifdef  __MigPackStructs
1273 #pragma pack(4)
1274 #endif
1275 	typedef struct {
1276 		mach_msg_header_t Head;
1277 		/* start of the kernel processed data */
1278 		mach_msg_body_t msgh_body;
1279 		mach_msg_port_descriptor_t new_set;
1280 		mach_msg_port_descriptor_t new_name;
1281 		/* end of the kernel processed data */
1282 	} __Reply__processor_set_create_t;
1283 #ifdef  __MigPackStructs
1284 #pragma pack()
1285 #endif
1286 
1287 #ifdef  __MigPackStructs
1288 #pragma pack(4)
1289 #endif
1290 	typedef struct {
1291 		mach_msg_header_t Head;
1292 		/* start of the kernel processed data */
1293 		mach_msg_body_t msgh_body;
1294 		mach_msg_port_descriptor_t entry_handle;
1295 		/* end of the kernel processed data */
1296 	} __Reply__mach_memory_object_memory_entry_64_t;
1297 #ifdef  __MigPackStructs
1298 #pragma pack()
1299 #endif
1300 
1301 #ifdef  __MigPackStructs
1302 #pragma pack(4)
1303 #endif
1304 	typedef struct {
1305 		mach_msg_header_t Head;
1306 		NDR_record_t NDR;
1307 		kern_return_t RetCode;
1308 		mach_msg_type_number_t host_info_outCnt;
1309 		integer_t host_info_out[68];
1310 	} __Reply__host_statistics_t;
1311 #ifdef  __MigPackStructs
1312 #pragma pack()
1313 #endif
1314 
1315 #ifdef  __MigPackStructs
1316 #pragma pack(4)
1317 #endif
1318 	typedef struct {
1319 		mach_msg_header_t Head;
1320 		NDR_record_t NDR;
1321 		kern_return_t RetCode;
1322 	} __Reply__host_request_notification_t;
1323 #ifdef  __MigPackStructs
1324 #pragma pack()
1325 #endif
1326 
1327 #ifdef  __MigPackStructs
1328 #pragma pack(4)
1329 #endif
1330 	typedef struct {
1331 		mach_msg_header_t Head;
1332 		NDR_record_t NDR;
1333 		kern_return_t RetCode;
1334 		mach_msg_type_number_t host_info64_outCnt;
1335 		integer_t host_info64_out[256];
1336 	} __Reply__host_statistics64_t;
1337 #ifdef  __MigPackStructs
1338 #pragma pack()
1339 #endif
1340 
1341 #ifdef  __MigPackStructs
1342 #pragma pack(4)
1343 #endif
1344 	typedef struct {
1345 		mach_msg_header_t Head;
1346 		/* start of the kernel processed data */
1347 		mach_msg_body_t msgh_body;
1348 		mach_msg_ool_descriptor_t names;
1349 		mach_msg_ool_descriptor_t info;
1350 		/* end of the kernel processed data */
1351 		NDR_record_t NDR;
1352 		mach_msg_type_number_t namesCnt;
1353 		mach_msg_type_number_t infoCnt;
1354 	} __Reply__mach_zone_info_t;
1355 #ifdef  __MigPackStructs
1356 #pragma pack()
1357 #endif
1358 
1359 #ifdef  __MigPackStructs
1360 #pragma pack(4)
1361 #endif
1362 	typedef struct {
1363 		mach_msg_header_t Head;
1364 		/* start of the kernel processed data */
1365 		mach_msg_body_t msgh_body;
1366 		mach_msg_port_descriptor_t voucher;
1367 		/* end of the kernel processed data */
1368 	} __Reply__host_create_mach_voucher_t;
1369 #ifdef  __MigPackStructs
1370 #pragma pack()
1371 #endif
1372 
1373 #ifdef  __MigPackStructs
1374 #pragma pack(4)
1375 #endif
1376 	typedef struct {
1377 		mach_msg_header_t Head;
1378 		/* start of the kernel processed data */
1379 		mach_msg_body_t msgh_body;
1380 		mach_msg_port_descriptor_t new_attr_control;
1381 		/* end of the kernel processed data */
1382 		NDR_record_t NDR;
1383 		mach_voucher_attr_key_t new_key;
1384 	} __Reply__host_register_mach_voucher_attr_manager_t;
1385 #ifdef  __MigPackStructs
1386 #pragma pack()
1387 #endif
1388 
1389 #ifdef  __MigPackStructs
1390 #pragma pack(4)
1391 #endif
1392 	typedef struct {
1393 		mach_msg_header_t Head;
1394 		/* start of the kernel processed data */
1395 		mach_msg_body_t msgh_body;
1396 		mach_msg_port_descriptor_t new_attr_control;
1397 		/* end of the kernel processed data */
1398 	} __Reply__host_register_well_known_mach_voucher_attr_manager_t;
1399 #ifdef  __MigPackStructs
1400 #pragma pack()
1401 #endif
1402 #endif /* !__Reply__mach_host_subsystem__defined */
1403 
1404 
1405 /* union of all replies */
1406 
1407 #ifndef __ReplyUnion__mach_host_subsystem__defined
1408 #define __ReplyUnion__mach_host_subsystem__defined
1409 union __ReplyUnion__mach_host_subsystem {
1410 	__Reply__host_info_t Reply_host_info;
1411 	__Reply__host_kernel_version_t Reply_host_kernel_version;
1412 	__Reply__host_page_size_t Reply_host_page_size;
1413 	__Reply__mach_memory_object_memory_entry_t Reply_mach_memory_object_memory_entry;
1414 	__Reply__host_processor_info_t Reply_host_processor_info;
1415 	__Reply__host_get_clock_service_t Reply_host_get_clock_service;
1416 	__Reply__host_virtual_physical_table_info_t Reply_host_virtual_physical_table_info;
1417 	__Reply__processor_set_default_t Reply_processor_set_default;
1418 	__Reply__processor_set_create_t Reply_processor_set_create;
1419 	__Reply__mach_memory_object_memory_entry_64_t Reply_mach_memory_object_memory_entry_64;
1420 	__Reply__host_statistics_t Reply_host_statistics;
1421 	__Reply__host_request_notification_t Reply_host_request_notification;
1422 	__Reply__host_statistics64_t Reply_host_statistics64;
1423 	__Reply__mach_zone_info_t Reply_mach_zone_info;
1424 	__Reply__host_create_mach_voucher_t Reply_host_create_mach_voucher;
1425 	__Reply__host_register_mach_voucher_attr_manager_t Reply_host_register_mach_voucher_attr_manager;
1426 	__Reply__host_register_well_known_mach_voucher_attr_manager_t Reply_host_register_well_known_mach_voucher_attr_manager;
1427 };
1428 #endif /* __RequestUnion__mach_host_subsystem__defined */
1429 
1430 #ifndef subsystem_to_name_map_mach_host
1431 #define subsystem_to_name_map_mach_host \
1432     { "host_info", 200 },\
1433     { "host_kernel_version", 201 },\
1434     { "host_page_size", 202 },\
1435     { "mach_memory_object_memory_entry", 203 },\
1436     { "host_processor_info", 204 },\
1437     { "host_get_clock_service", 206 },\
1438     { "host_virtual_physical_table_info", 209 },\
1439     { "processor_set_default", 213 },\
1440     { "processor_set_create", 214 },\
1441     { "mach_memory_object_memory_entry_64", 215 },\
1442     { "host_statistics", 216 },\
1443     { "host_request_notification", 217 },\
1444     { "host_statistics64", 219 },\
1445     { "mach_zone_info", 220 },\
1446     { "host_create_mach_voucher", 222 },\
1447     { "host_register_mach_voucher_attr_manager", 223 },\
1448     { "host_register_well_known_mach_voucher_attr_manager", 224 }
1449 #endif
1450 
1451 #ifdef __AfterMigServerHeader
1452 __AfterMigServerHeader
1453 #endif /* __AfterMigServerHeader */
1454 
1455 #endif	 /* _mach_host_server_ */
1456