Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/modules/include/mach/mach_vm.h

1#ifndef_mach_vm_user_
2#define_mach_vm_user_
3
4/* Module mach_vm */
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
19typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
20typedef struct {
21 char *name;
22 function_ptr_t function;
23} function_table_entry;
24typedef function_table_entry *function_table_t;
25#endif /* FUNCTION_PTR_T */
26#endif /* AUTOTEST */
27
28#ifndefmach_vm_MSG_COUNT
29#definemach_vm_MSG_COUNT20
30#endif/* mach_vm_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_debug/mach_debug_types.h>
37
38#ifdef __BeforeMigUserHeader
39__BeforeMigUserHeader
40#endif /* __BeforeMigUserHeader */
41
42#include <sys/cdefs.h>
43__BEGIN_DECLS
44
45
46/* Routine mach_vm_allocate */
47#ifdefmig_external
48mig_external
49#else
50extern
51#endif/* mig_external */
52kern_return_t mach_vm_allocate
53(
54vm_map_t target,
55mach_vm_address_t *address,
56mach_vm_size_t size,
57int flags
58);
59
60/* Routine mach_vm_deallocate */
61#ifdefmig_external
62mig_external
63#else
64extern
65#endif/* mig_external */
66kern_return_t mach_vm_deallocate
67(
68vm_map_t target,
69mach_vm_address_t address,
70mach_vm_size_t size
71);
72
73/* Routine mach_vm_protect */
74#ifdefmig_external
75mig_external
76#else
77extern
78#endif/* mig_external */
79kern_return_t mach_vm_protect
80(
81vm_map_t target_task,
82mach_vm_address_t address,
83mach_vm_size_t size,
84boolean_t set_maximum,
85vm_prot_t new_protection
86);
87
88/* Routine mach_vm_inherit */
89#ifdefmig_external
90mig_external
91#else
92extern
93#endif/* mig_external */
94kern_return_t mach_vm_inherit
95(
96vm_map_t target_task,
97mach_vm_address_t address,
98mach_vm_size_t size,
99vm_inherit_t new_inheritance
100);
101
102/* Routine mach_vm_read */
103#ifdefmig_external
104mig_external
105#else
106extern
107#endif/* mig_external */
108kern_return_t mach_vm_read
109(
110vm_map_t target_task,
111mach_vm_address_t address,
112mach_vm_size_t size,
113vm_offset_t *data,
114mach_msg_type_number_t *dataCnt
115);
116
117/* Routine mach_vm_read_list */
118#ifdefmig_external
119mig_external
120#else
121extern
122#endif/* mig_external */
123kern_return_t mach_vm_read_list
124(
125vm_map_t target_task,
126mach_vm_read_entry_t data_list,
127natural_t count
128);
129
130/* Routine mach_vm_write */
131#ifdefmig_external
132mig_external
133#else
134extern
135#endif/* mig_external */
136kern_return_t mach_vm_write
137(
138vm_map_t target_task,
139mach_vm_address_t address,
140vm_offset_t data,
141mach_msg_type_number_t dataCnt
142);
143
144/* Routine mach_vm_copy */
145#ifdefmig_external
146mig_external
147#else
148extern
149#endif/* mig_external */
150kern_return_t mach_vm_copy
151(
152vm_map_t target_task,
153mach_vm_address_t source_address,
154mach_vm_size_t size,
155mach_vm_address_t dest_address
156);
157
158/* Routine mach_vm_read_overwrite */
159#ifdefmig_external
160mig_external
161#else
162extern
163#endif/* mig_external */
164kern_return_t mach_vm_read_overwrite
165(
166vm_map_t target_task,
167mach_vm_address_t address,
168mach_vm_size_t size,
169mach_vm_address_t data,
170mach_vm_size_t *outsize
171);
172
173/* Routine mach_vm_msync */
174#ifdefmig_external
175mig_external
176#else
177extern
178#endif/* mig_external */
179kern_return_t mach_vm_msync
180(
181vm_map_t target_task,
182mach_vm_address_t address,
183mach_vm_size_t size,
184vm_sync_t sync_flags
185);
186
187/* Routine mach_vm_behavior_set */
188#ifdefmig_external
189mig_external
190#else
191extern
192#endif/* mig_external */
193kern_return_t mach_vm_behavior_set
194(
195vm_map_t target_task,
196mach_vm_address_t address,
197mach_vm_size_t size,
198vm_behavior_t new_behavior
199);
200
201/* Routine mach_vm_map */
202#ifdefmig_external
203mig_external
204#else
205extern
206#endif/* mig_external */
207kern_return_t mach_vm_map
208(
209vm_map_t target_task,
210mach_vm_address_t *address,
211mach_vm_size_t size,
212mach_vm_offset_t mask,
213int flags,
214mem_entry_name_port_t object,
215memory_object_offset_t offset,
216boolean_t copy,
217vm_prot_t cur_protection,
218vm_prot_t max_protection,
219vm_inherit_t inheritance
220);
221
222/* Routine mach_vm_machine_attribute */
223#ifdefmig_external
224mig_external
225#else
226extern
227#endif/* mig_external */
228kern_return_t mach_vm_machine_attribute
229(
230vm_map_t target_task,
231mach_vm_address_t address,
232mach_vm_size_t size,
233vm_machine_attribute_t attribute,
234vm_machine_attribute_val_t *value
235);
236
237/* Routine mach_vm_remap */
238#ifdefmig_external
239mig_external
240#else
241extern
242#endif/* mig_external */
243kern_return_t mach_vm_remap
244(
245vm_map_t target_task,
246mach_vm_address_t *target_address,
247mach_vm_size_t size,
248mach_vm_offset_t mask,
249int flags,
250vm_map_t src_task,
251mach_vm_address_t src_address,
252boolean_t copy,
253vm_prot_t *cur_protection,
254vm_prot_t *max_protection,
255vm_inherit_t inheritance
256);
257
258/* Routine mach_vm_page_query */
259#ifdefmig_external
260mig_external
261#else
262extern
263#endif/* mig_external */
264kern_return_t mach_vm_page_query
265(
266vm_map_t target_map,
267mach_vm_offset_t offset,
268integer_t *disposition,
269integer_t *ref_count
270);
271
272/* Routine mach_vm_region_recurse */
273#ifdefmig_external
274mig_external
275#else
276extern
277#endif/* mig_external */
278kern_return_t mach_vm_region_recurse
279(
280vm_map_t target_task,
281mach_vm_address_t *address,
282mach_vm_size_t *size,
283natural_t *nesting_depth,
284vm_region_recurse_info_t info,
285mach_msg_type_number_t *infoCnt
286);
287
288/* Routine mach_vm_region */
289#ifdefmig_external
290mig_external
291#else
292extern
293#endif/* mig_external */
294kern_return_t mach_vm_region
295(
296vm_map_t target_task,
297mach_vm_address_t *address,
298mach_vm_size_t *size,
299vm_region_flavor_t flavor,
300vm_region_info_t info,
301mach_msg_type_number_t *infoCnt,
302mach_port_t *object_name
303);
304
305/* Routine _mach_make_memory_entry */
306#ifdefmig_external
307mig_external
308#else
309extern
310#endif/* mig_external */
311kern_return_t _mach_make_memory_entry
312(
313vm_map_t target_task,
314memory_object_size_t *size,
315memory_object_offset_t offset,
316vm_prot_t permission,
317mem_entry_name_port_t *object_handle,
318mem_entry_name_port_t parent_handle
319);
320
321/* Routine mach_vm_purgable_control */
322#ifdefmig_external
323mig_external
324#else
325extern
326#endif/* mig_external */
327kern_return_t mach_vm_purgable_control
328(
329vm_map_t target_task,
330mach_vm_address_t address,
331vm_purgable_t control,
332int *state
333);
334
335/* Routine mach_vm_page_info */
336#ifdefmig_external
337mig_external
338#else
339extern
340#endif/* mig_external */
341kern_return_t mach_vm_page_info
342(
343vm_map_t target_task,
344mach_vm_address_t address,
345vm_page_info_flavor_t flavor,
346vm_page_info_t info,
347mach_msg_type_number_t *infoCnt
348);
349
350__END_DECLS
351
352/********************** Caution **************************/
353/* The following data types should be used to calculate */
354/* maximum message sizes only. The actual message may be */
355/* smaller, and the position of the arguments within the */
356/* message layout may vary from what is presented here. */
357/* For example, if any of the arguments are variable- */
358/* sized, and less than the maximum is sent, the data */
359/* will be packed tight in the actual message to reduce */
360/* the presence of holes. */
361/********************** Caution **************************/
362
363/* typedefs for all requests */
364
365#ifndef __Request__mach_vm_subsystem__defined
366#define __Request__mach_vm_subsystem__defined
367
368#ifdef __MigPackStructs
369#pragma pack(4)
370#endif
371typedef struct {
372mach_msg_header_t Head;
373NDR_record_t NDR;
374mach_vm_address_t address;
375mach_vm_size_t size;
376int flags;
377} __Request__mach_vm_allocate_t;
378#ifdef __MigPackStructs
379#pragma pack()
380#endif
381
382#ifdef __MigPackStructs
383#pragma pack(4)
384#endif
385typedef struct {
386mach_msg_header_t Head;
387NDR_record_t NDR;
388mach_vm_address_t address;
389mach_vm_size_t size;
390} __Request__mach_vm_deallocate_t;
391#ifdef __MigPackStructs
392#pragma pack()
393#endif
394
395#ifdef __MigPackStructs
396#pragma pack(4)
397#endif
398typedef struct {
399mach_msg_header_t Head;
400NDR_record_t NDR;
401mach_vm_address_t address;
402mach_vm_size_t size;
403boolean_t set_maximum;
404vm_prot_t new_protection;
405} __Request__mach_vm_protect_t;
406#ifdef __MigPackStructs
407#pragma pack()
408#endif
409
410#ifdef __MigPackStructs
411#pragma pack(4)
412#endif
413typedef struct {
414mach_msg_header_t Head;
415NDR_record_t NDR;
416mach_vm_address_t address;
417mach_vm_size_t size;
418vm_inherit_t new_inheritance;
419} __Request__mach_vm_inherit_t;
420#ifdef __MigPackStructs
421#pragma pack()
422#endif
423
424#ifdef __MigPackStructs
425#pragma pack(4)
426#endif
427typedef struct {
428mach_msg_header_t Head;
429NDR_record_t NDR;
430mach_vm_address_t address;
431mach_vm_size_t size;
432} __Request__mach_vm_read_t;
433#ifdef __MigPackStructs
434#pragma pack()
435#endif
436
437#ifdef __MigPackStructs
438#pragma pack(4)
439#endif
440typedef struct {
441mach_msg_header_t Head;
442NDR_record_t NDR;
443mach_vm_read_entry_t data_list;
444natural_t count;
445} __Request__mach_vm_read_list_t;
446#ifdef __MigPackStructs
447#pragma pack()
448#endif
449
450#ifdef __MigPackStructs
451#pragma pack(4)
452#endif
453typedef struct {
454mach_msg_header_t Head;
455/* start of the kernel processed data */
456mach_msg_body_t msgh_body;
457mach_msg_ool_descriptor_t data;
458/* end of the kernel processed data */
459NDR_record_t NDR;
460mach_vm_address_t address;
461mach_msg_type_number_t dataCnt;
462} __Request__mach_vm_write_t;
463#ifdef __MigPackStructs
464#pragma pack()
465#endif
466
467#ifdef __MigPackStructs
468#pragma pack(4)
469#endif
470typedef struct {
471mach_msg_header_t Head;
472NDR_record_t NDR;
473mach_vm_address_t source_address;
474mach_vm_size_t size;
475mach_vm_address_t dest_address;
476} __Request__mach_vm_copy_t;
477#ifdef __MigPackStructs
478#pragma pack()
479#endif
480
481#ifdef __MigPackStructs
482#pragma pack(4)
483#endif
484typedef struct {
485mach_msg_header_t Head;
486NDR_record_t NDR;
487mach_vm_address_t address;
488mach_vm_size_t size;
489mach_vm_address_t data;
490} __Request__mach_vm_read_overwrite_t;
491#ifdef __MigPackStructs
492#pragma pack()
493#endif
494
495#ifdef __MigPackStructs
496#pragma pack(4)
497#endif
498typedef struct {
499mach_msg_header_t Head;
500NDR_record_t NDR;
501mach_vm_address_t address;
502mach_vm_size_t size;
503vm_sync_t sync_flags;
504} __Request__mach_vm_msync_t;
505#ifdef __MigPackStructs
506#pragma pack()
507#endif
508
509#ifdef __MigPackStructs
510#pragma pack(4)
511#endif
512typedef struct {
513mach_msg_header_t Head;
514NDR_record_t NDR;
515mach_vm_address_t address;
516mach_vm_size_t size;
517vm_behavior_t new_behavior;
518} __Request__mach_vm_behavior_set_t;
519#ifdef __MigPackStructs
520#pragma pack()
521#endif
522
523#ifdef __MigPackStructs
524#pragma pack(4)
525#endif
526typedef struct {
527mach_msg_header_t Head;
528/* start of the kernel processed data */
529mach_msg_body_t msgh_body;
530mach_msg_port_descriptor_t object;
531/* end of the kernel processed data */
532NDR_record_t NDR;
533mach_vm_address_t address;
534mach_vm_size_t size;
535mach_vm_offset_t mask;
536int flags;
537memory_object_offset_t offset;
538boolean_t copy;
539vm_prot_t cur_protection;
540vm_prot_t max_protection;
541vm_inherit_t inheritance;
542} __Request__mach_vm_map_t;
543#ifdef __MigPackStructs
544#pragma pack()
545#endif
546
547#ifdef __MigPackStructs
548#pragma pack(4)
549#endif
550typedef struct {
551mach_msg_header_t Head;
552NDR_record_t NDR;
553mach_vm_address_t address;
554mach_vm_size_t size;
555vm_machine_attribute_t attribute;
556vm_machine_attribute_val_t value;
557} __Request__mach_vm_machine_attribute_t;
558#ifdef __MigPackStructs
559#pragma pack()
560#endif
561
562#ifdef __MigPackStructs
563#pragma pack(4)
564#endif
565typedef struct {
566mach_msg_header_t Head;
567/* start of the kernel processed data */
568mach_msg_body_t msgh_body;
569mach_msg_port_descriptor_t src_task;
570/* end of the kernel processed data */
571NDR_record_t NDR;
572mach_vm_address_t target_address;
573mach_vm_size_t size;
574mach_vm_offset_t mask;
575int flags;
576mach_vm_address_t src_address;
577boolean_t copy;
578vm_inherit_t inheritance;
579} __Request__mach_vm_remap_t;
580#ifdef __MigPackStructs
581#pragma pack()
582#endif
583
584#ifdef __MigPackStructs
585#pragma pack(4)
586#endif
587typedef struct {
588mach_msg_header_t Head;
589NDR_record_t NDR;
590mach_vm_offset_t offset;
591} __Request__mach_vm_page_query_t;
592#ifdef __MigPackStructs
593#pragma pack()
594#endif
595
596#ifdef __MigPackStructs
597#pragma pack(4)
598#endif
599typedef struct {
600mach_msg_header_t Head;
601NDR_record_t NDR;
602mach_vm_address_t address;
603natural_t nesting_depth;
604mach_msg_type_number_t infoCnt;
605} __Request__mach_vm_region_recurse_t;
606#ifdef __MigPackStructs
607#pragma pack()
608#endif
609
610#ifdef __MigPackStructs
611#pragma pack(4)
612#endif
613typedef struct {
614mach_msg_header_t Head;
615NDR_record_t NDR;
616mach_vm_address_t address;
617vm_region_flavor_t flavor;
618mach_msg_type_number_t infoCnt;
619} __Request__mach_vm_region_t;
620#ifdef __MigPackStructs
621#pragma pack()
622#endif
623
624#ifdef __MigPackStructs
625#pragma pack(4)
626#endif
627typedef struct {
628mach_msg_header_t Head;
629/* start of the kernel processed data */
630mach_msg_body_t msgh_body;
631mach_msg_port_descriptor_t parent_handle;
632/* end of the kernel processed data */
633NDR_record_t NDR;
634memory_object_size_t size;
635memory_object_offset_t offset;
636vm_prot_t permission;
637} __Request___mach_make_memory_entry_t;
638#ifdef __MigPackStructs
639#pragma pack()
640#endif
641
642#ifdef __MigPackStructs
643#pragma pack(4)
644#endif
645typedef struct {
646mach_msg_header_t Head;
647NDR_record_t NDR;
648mach_vm_address_t address;
649vm_purgable_t control;
650int state;
651} __Request__mach_vm_purgable_control_t;
652#ifdef __MigPackStructs
653#pragma pack()
654#endif
655
656#ifdef __MigPackStructs
657#pragma pack(4)
658#endif
659typedef struct {
660mach_msg_header_t Head;
661NDR_record_t NDR;
662mach_vm_address_t address;
663vm_page_info_flavor_t flavor;
664mach_msg_type_number_t infoCnt;
665} __Request__mach_vm_page_info_t;
666#ifdef __MigPackStructs
667#pragma pack()
668#endif
669#endif /* !__Request__mach_vm_subsystem__defined */
670
671/* union of all requests */
672
673#ifndef __RequestUnion__mach_vm_subsystem__defined
674#define __RequestUnion__mach_vm_subsystem__defined
675union __RequestUnion__mach_vm_subsystem {
676__Request__mach_vm_allocate_t Request_mach_vm_allocate;
677__Request__mach_vm_deallocate_t Request_mach_vm_deallocate;
678__Request__mach_vm_protect_t Request_mach_vm_protect;
679__Request__mach_vm_inherit_t Request_mach_vm_inherit;
680__Request__mach_vm_read_t Request_mach_vm_read;
681__Request__mach_vm_read_list_t Request_mach_vm_read_list;
682__Request__mach_vm_write_t Request_mach_vm_write;
683__Request__mach_vm_copy_t Request_mach_vm_copy;
684__Request__mach_vm_read_overwrite_t Request_mach_vm_read_overwrite;
685__Request__mach_vm_msync_t Request_mach_vm_msync;
686__Request__mach_vm_behavior_set_t Request_mach_vm_behavior_set;
687__Request__mach_vm_map_t Request_mach_vm_map;
688__Request__mach_vm_machine_attribute_t Request_mach_vm_machine_attribute;
689__Request__mach_vm_remap_t Request_mach_vm_remap;
690__Request__mach_vm_page_query_t Request_mach_vm_page_query;
691__Request__mach_vm_region_recurse_t Request_mach_vm_region_recurse;
692__Request__mach_vm_region_t Request_mach_vm_region;
693__Request___mach_make_memory_entry_t Request__mach_make_memory_entry;
694__Request__mach_vm_purgable_control_t Request_mach_vm_purgable_control;
695__Request__mach_vm_page_info_t Request_mach_vm_page_info;
696};
697#endif /* !__RequestUnion__mach_vm_subsystem__defined */
698/* typedefs for all replies */
699
700#ifndef __Reply__mach_vm_subsystem__defined
701#define __Reply__mach_vm_subsystem__defined
702
703#ifdef __MigPackStructs
704#pragma pack(4)
705#endif
706typedef struct {
707mach_msg_header_t Head;
708NDR_record_t NDR;
709kern_return_t RetCode;
710mach_vm_address_t address;
711} __Reply__mach_vm_allocate_t;
712#ifdef __MigPackStructs
713#pragma pack()
714#endif
715
716#ifdef __MigPackStructs
717#pragma pack(4)
718#endif
719typedef struct {
720mach_msg_header_t Head;
721NDR_record_t NDR;
722kern_return_t RetCode;
723} __Reply__mach_vm_deallocate_t;
724#ifdef __MigPackStructs
725#pragma pack()
726#endif
727
728#ifdef __MigPackStructs
729#pragma pack(4)
730#endif
731typedef struct {
732mach_msg_header_t Head;
733NDR_record_t NDR;
734kern_return_t RetCode;
735} __Reply__mach_vm_protect_t;
736#ifdef __MigPackStructs
737#pragma pack()
738#endif
739
740#ifdef __MigPackStructs
741#pragma pack(4)
742#endif
743typedef struct {
744mach_msg_header_t Head;
745NDR_record_t NDR;
746kern_return_t RetCode;
747} __Reply__mach_vm_inherit_t;
748#ifdef __MigPackStructs
749#pragma pack()
750#endif
751
752#ifdef __MigPackStructs
753#pragma pack(4)
754#endif
755typedef struct {
756mach_msg_header_t Head;
757/* start of the kernel processed data */
758mach_msg_body_t msgh_body;
759mach_msg_ool_descriptor_t data;
760/* end of the kernel processed data */
761NDR_record_t NDR;
762mach_msg_type_number_t dataCnt;
763} __Reply__mach_vm_read_t;
764#ifdef __MigPackStructs
765#pragma pack()
766#endif
767
768#ifdef __MigPackStructs
769#pragma pack(4)
770#endif
771typedef struct {
772mach_msg_header_t Head;
773NDR_record_t NDR;
774kern_return_t RetCode;
775mach_vm_read_entry_t data_list;
776} __Reply__mach_vm_read_list_t;
777#ifdef __MigPackStructs
778#pragma pack()
779#endif
780
781#ifdef __MigPackStructs
782#pragma pack(4)
783#endif
784typedef struct {
785mach_msg_header_t Head;
786NDR_record_t NDR;
787kern_return_t RetCode;
788} __Reply__mach_vm_write_t;
789#ifdef __MigPackStructs
790#pragma pack()
791#endif
792
793#ifdef __MigPackStructs
794#pragma pack(4)
795#endif
796typedef struct {
797mach_msg_header_t Head;
798NDR_record_t NDR;
799kern_return_t RetCode;
800} __Reply__mach_vm_copy_t;
801#ifdef __MigPackStructs
802#pragma pack()
803#endif
804
805#ifdef __MigPackStructs
806#pragma pack(4)
807#endif
808typedef struct {
809mach_msg_header_t Head;
810NDR_record_t NDR;
811kern_return_t RetCode;
812mach_vm_size_t outsize;
813} __Reply__mach_vm_read_overwrite_t;
814#ifdef __MigPackStructs
815#pragma pack()
816#endif
817
818#ifdef __MigPackStructs
819#pragma pack(4)
820#endif
821typedef struct {
822mach_msg_header_t Head;
823NDR_record_t NDR;
824kern_return_t RetCode;
825} __Reply__mach_vm_msync_t;
826#ifdef __MigPackStructs
827#pragma pack()
828#endif
829
830#ifdef __MigPackStructs
831#pragma pack(4)
832#endif
833typedef struct {
834mach_msg_header_t Head;
835NDR_record_t NDR;
836kern_return_t RetCode;
837} __Reply__mach_vm_behavior_set_t;
838#ifdef __MigPackStructs
839#pragma pack()
840#endif
841
842#ifdef __MigPackStructs
843#pragma pack(4)
844#endif
845typedef struct {
846mach_msg_header_t Head;
847NDR_record_t NDR;
848kern_return_t RetCode;
849mach_vm_address_t address;
850} __Reply__mach_vm_map_t;
851#ifdef __MigPackStructs
852#pragma pack()
853#endif
854
855#ifdef __MigPackStructs
856#pragma pack(4)
857#endif
858typedef struct {
859mach_msg_header_t Head;
860NDR_record_t NDR;
861kern_return_t RetCode;
862vm_machine_attribute_val_t value;
863} __Reply__mach_vm_machine_attribute_t;
864#ifdef __MigPackStructs
865#pragma pack()
866#endif
867
868#ifdef __MigPackStructs
869#pragma pack(4)
870#endif
871typedef struct {
872mach_msg_header_t Head;
873NDR_record_t NDR;
874kern_return_t RetCode;
875mach_vm_address_t target_address;
876vm_prot_t cur_protection;
877vm_prot_t max_protection;
878} __Reply__mach_vm_remap_t;
879#ifdef __MigPackStructs
880#pragma pack()
881#endif
882
883#ifdef __MigPackStructs
884#pragma pack(4)
885#endif
886typedef struct {
887mach_msg_header_t Head;
888NDR_record_t NDR;
889kern_return_t RetCode;
890integer_t disposition;
891integer_t ref_count;
892} __Reply__mach_vm_page_query_t;
893#ifdef __MigPackStructs
894#pragma pack()
895#endif
896
897#ifdef __MigPackStructs
898#pragma pack(4)
899#endif
900typedef struct {
901mach_msg_header_t Head;
902NDR_record_t NDR;
903kern_return_t RetCode;
904mach_vm_address_t address;
905mach_vm_size_t size;
906natural_t nesting_depth;
907mach_msg_type_number_t infoCnt;
908int info[19];
909} __Reply__mach_vm_region_recurse_t;
910#ifdef __MigPackStructs
911#pragma pack()
912#endif
913
914#ifdef __MigPackStructs
915#pragma pack(4)
916#endif
917typedef struct {
918mach_msg_header_t Head;
919/* start of the kernel processed data */
920mach_msg_body_t msgh_body;
921mach_msg_port_descriptor_t object_name;
922/* end of the kernel processed data */
923NDR_record_t NDR;
924mach_vm_address_t address;
925mach_vm_size_t size;
926mach_msg_type_number_t infoCnt;
927int info[10];
928} __Reply__mach_vm_region_t;
929#ifdef __MigPackStructs
930#pragma pack()
931#endif
932
933#ifdef __MigPackStructs
934#pragma pack(4)
935#endif
936typedef struct {
937mach_msg_header_t Head;
938/* start of the kernel processed data */
939mach_msg_body_t msgh_body;
940mach_msg_port_descriptor_t object_handle;
941/* end of the kernel processed data */
942NDR_record_t NDR;
943memory_object_size_t size;
944} __Reply___mach_make_memory_entry_t;
945#ifdef __MigPackStructs
946#pragma pack()
947#endif
948
949#ifdef __MigPackStructs
950#pragma pack(4)
951#endif
952typedef struct {
953mach_msg_header_t Head;
954NDR_record_t NDR;
955kern_return_t RetCode;
956int state;
957} __Reply__mach_vm_purgable_control_t;
958#ifdef __MigPackStructs
959#pragma pack()
960#endif
961
962#ifdef __MigPackStructs
963#pragma pack(4)
964#endif
965typedef struct {
966mach_msg_header_t Head;
967NDR_record_t NDR;
968kern_return_t RetCode;
969mach_msg_type_number_t infoCnt;
970int info[32];
971} __Reply__mach_vm_page_info_t;
972#ifdef __MigPackStructs
973#pragma pack()
974#endif
975#endif /* !__Reply__mach_vm_subsystem__defined */
976
977/* union of all replies */
978
979#ifndef __ReplyUnion__mach_vm_subsystem__defined
980#define __ReplyUnion__mach_vm_subsystem__defined
981union __ReplyUnion__mach_vm_subsystem {
982__Reply__mach_vm_allocate_t Reply_mach_vm_allocate;
983__Reply__mach_vm_deallocate_t Reply_mach_vm_deallocate;
984__Reply__mach_vm_protect_t Reply_mach_vm_protect;
985__Reply__mach_vm_inherit_t Reply_mach_vm_inherit;
986__Reply__mach_vm_read_t Reply_mach_vm_read;
987__Reply__mach_vm_read_list_t Reply_mach_vm_read_list;
988__Reply__mach_vm_write_t Reply_mach_vm_write;
989__Reply__mach_vm_copy_t Reply_mach_vm_copy;
990__Reply__mach_vm_read_overwrite_t Reply_mach_vm_read_overwrite;
991__Reply__mach_vm_msync_t Reply_mach_vm_msync;
992__Reply__mach_vm_behavior_set_t Reply_mach_vm_behavior_set;
993__Reply__mach_vm_map_t Reply_mach_vm_map;
994__Reply__mach_vm_machine_attribute_t Reply_mach_vm_machine_attribute;
995__Reply__mach_vm_remap_t Reply_mach_vm_remap;
996__Reply__mach_vm_page_query_t Reply_mach_vm_page_query;
997__Reply__mach_vm_region_recurse_t Reply_mach_vm_region_recurse;
998__Reply__mach_vm_region_t Reply_mach_vm_region;
999__Reply___mach_make_memory_entry_t Reply__mach_make_memory_entry;
1000__Reply__mach_vm_purgable_control_t Reply_mach_vm_purgable_control;
1001__Reply__mach_vm_page_info_t Reply_mach_vm_page_info;
1002};
1003#endif /* !__RequestUnion__mach_vm_subsystem__defined */
1004
1005#ifndef subsystem_to_name_map_mach_vm
1006#define subsystem_to_name_map_mach_vm \
1007 { "mach_vm_allocate", 4800 },\
1008 { "mach_vm_deallocate", 4801 },\
1009 { "mach_vm_protect", 4802 },\
1010 { "mach_vm_inherit", 4803 },\
1011 { "mach_vm_read", 4804 },\
1012 { "mach_vm_read_list", 4805 },\
1013 { "mach_vm_write", 4806 },\
1014 { "mach_vm_copy", 4807 },\
1015 { "mach_vm_read_overwrite", 4808 },\
1016 { "mach_vm_msync", 4809 },\
1017 { "mach_vm_behavior_set", 4810 },\
1018 { "mach_vm_map", 4811 },\
1019 { "mach_vm_machine_attribute", 4812 },\
1020 { "mach_vm_remap", 4813 },\
1021 { "mach_vm_page_query", 4814 },\
1022 { "mach_vm_region_recurse", 4815 },\
1023 { "mach_vm_region", 4816 },\
1024 { "_mach_make_memory_entry", 4817 },\
1025 { "mach_vm_purgable_control", 4818 },\
1026 { "mach_vm_page_info", 4819 }
1027#endif
1028
1029#ifdef __AfterMigUserHeader
1030__AfterMigUserHeader
1031#endif /* __AfterMigUserHeader */
1032
1033#endif /* _mach_vm_user_ */
1034

Archive Download this file

Revision: 2182