]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/vm_region.h
xnu-517.11.1.tar.gz
[apple/xnu.git] / osfmk / mach / vm_region.h
index 2f46e4e0d2fbafc9855cbcb61d56e92bc523cca4..4747068e61a43f69bd334019d7b7b7cf481dc612 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2002,2000 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
 /*
  * @OSF_COPYRIGHT@
  */
 /*
  * @OSF_COPYRIGHT@
  */
-/*
- * HISTORY
- * 
- * Revision 1.1.1.1  1998/09/22 21:05:31  wsanchez
- * Import of Mac OS X kernel (~semeria)
- *
- * Revision 1.1.1.1  1998/03/07 02:25:46  wsanchez
- * Import of OSF Mach kernel (~mburg)
- *
- * Revision 1.1.5.1  1995/01/16  17:22:27  bolinger
- *     Import files unchanged from osc1.3b11 into cnmk_shared.
- *     [1995/01/16  17:20:37  bolinger]
- *
- * Revision 1.1.3.2  1993/10/05  22:23:22  watkins
- *     Merge forward.
- *     [1993/10/05  22:05:05  watkins]
- * 
- * Revision 1.1.1.2  1993/09/28  19:42:50  watkins
- *     Created to comply with spec.
- * 
- * $EndLog$
- */
 /*
  *     File:   mach/vm_region.h
  *
 /*
  *     File:   mach/vm_region.h
  *
@@ -141,7 +119,7 @@ struct vm_region_extended_info {
         unsigned int            pages_resident;
         unsigned int            pages_shared_now_private;
         unsigned int            pages_swapped_out;
         unsigned int            pages_resident;
         unsigned int            pages_shared_now_private;
         unsigned int            pages_swapped_out;
-        unsigned int            pages_referenced;
+        unsigned int            pages_dirtied;
         unsigned int            ref_count;
         unsigned short          shadow_depth;
         unsigned char           external_pager;
         unsigned int            ref_count;
         unsigned short          shadow_depth;
         unsigned char           external_pager;
@@ -205,7 +183,7 @@ struct vm_region_submap_info {
         unsigned int            pages_resident;        /* only valid for objects */
         unsigned int            pages_shared_now_private; /* only for objects */
         unsigned int            pages_swapped_out; /* only for objects */
         unsigned int            pages_resident;        /* only valid for objects */
         unsigned int            pages_shared_now_private; /* only for objects */
         unsigned int            pages_swapped_out; /* only for objects */
-        unsigned int            pages_referenced; /* only for objects */
+        unsigned int            pages_dirtied;   /* only for objects */
         unsigned int            ref_count;      /* obj/map mappers, etc */
         unsigned short          shadow_depth;  /* only for obj */
         unsigned char           external_pager;  /* only for obj */
         unsigned int            ref_count;      /* obj/map mappers, etc */
         unsigned short          shadow_depth;  /* only for obj */
         unsigned char           external_pager;  /* only for obj */
@@ -233,7 +211,7 @@ struct vm_region_submap_info_64 {
         unsigned int            pages_resident;        /* only valid for objects */
         unsigned int            pages_shared_now_private; /* only for objects */
         unsigned int            pages_swapped_out; /* only for objects */
         unsigned int            pages_resident;        /* only valid for objects */
         unsigned int            pages_shared_now_private; /* only for objects */
         unsigned int            pages_swapped_out; /* only for objects */
-        unsigned int            pages_referenced; /* only for objects */
+        unsigned int            pages_dirtied;   /* only for objects */
         unsigned int            ref_count;      /* obj/map mappers, etc */
         unsigned short          shadow_depth;  /* only for obj */
         unsigned char           external_pager;  /* only for obj */
         unsigned int            ref_count;      /* obj/map mappers, etc */
         unsigned short          shadow_depth;  /* only for obj */
         unsigned char           external_pager;  /* only for obj */
@@ -251,6 +229,28 @@ typedef struct vm_region_submap_info_64             vm_region_submap_info_data_64_t;
        (sizeof(vm_region_submap_info_data_64_t)/sizeof(int))
 
 
        (sizeof(vm_region_submap_info_data_64_t)/sizeof(int))
 
 
+#define VM_REGION_OBJECT_INFO_64       13
+
+struct vm_region_object_info_64 {
+       vm_prot_t               protection;
+       vm_prot_t               max_protection;
+       vm_inherit_t            inheritance;
+       boolean_t               shared;
+       boolean_t               is_sub_map;
+       vm_object_offset_t      offset;
+       vm_behavior_t           behavior;
+       unsigned short          user_wired_count;
+       vm_offset_t             object_id;
+};
+
+typedef struct vm_region_object_info_64                *vm_region_object_info_64_t;
+typedef struct vm_region_object_info_64                 vm_region_object_info_data_64_t;
+
+#define VM_REGION_OBJECT_INFO_COUNT_64         \
+       (sizeof(vm_region_object_info_data_64_t)/sizeof(int))
+
+
+
 struct vm_read_entry {
        vm_address_t    address;
        vm_size_t       size;
 struct vm_read_entry {
        vm_address_t    address;
        vm_size_t       size;