Chameleon

Chameleon Svn Source Tree

Root/tags/2.3/i386/include/mach/mach_vm.h

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

Archive Download this file

Revision: 2862