aboutsummaryrefslogtreecommitdiff
path: root/vm/vm_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_map.h')
-rw-r--r--vm/vm_map.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/vm_map.h b/vm/vm_map.h
index 74c86a79..9e946c5e 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -194,6 +194,8 @@ struct vm_map {
/* boolean_t */ wiring_required:1; /* All memory wired? */
unsigned int timestamp; /* Version number */
+
+ const char *name; /* Associated name */
};
#define vm_map_to_entry(map) ((struct vm_map_entry *) &(map)->hdr.links)
@@ -466,6 +468,12 @@ boolean_t vm_map_lookup_entry(
vm_offset_t address,
vm_map_entry_t *entry); /* OUT */
+static inline void vm_map_set_name(vm_map_t map, const char *name)
+{
+ map->name = name;
+}
+
+
/*
* Functions implemented as macros
*/