Lines Matching refs:map
15 * tree (a map) of memory blocks allocated by the guest system. The map is
16 * organized in such a way, that each entry in the map describes a virtual
19 * malloc's caller. Map considers two blocks to be equal if their address ranges
34 /* Allocation descriptors map. */
36 /* Head of the map. */
41 // Map API
44 /* Initializes allocation descriptors map.
46 * map - Allocation descriptors map to initialize.
48 void allocmap_init(AllocMap* map);
50 /* Inserts new (or replaces existing) entry in the allocation descriptors map.
53 * a matching entry already exists in the map. If 'replaced' parameter is not
54 * NULL, and a matching entry exists in the map, content of the existing entry
56 * entry will be removed from the map, and new entry will be inserted.
58 * map - Allocation descriptors map where to insert new, or replace existing
60 * desc - Allocation descriptor to insert to the map.
62 * that has been replaced in the map with the new entry. Note that if this
69 RBTMapResult allocmap_insert(AllocMap* map,
73 /* Finds an entry in the allocation descriptors map that matches the given
76 * map - Allocation descriptors map where to search for an entry.
83 * Pointer to the allocation descriptor found in a map entry, or NULL if no
84 * matching entry has been found in the map.
86 MallocDescEx* allocmap_find(const AllocMap* map,
90 /* Pulls (finds and removes) an entry from the allocation descriptors map that
93 * map - Allocation descriptors map where to search for an entry.
99 * from the map.
102 * been pulled, or 1 if no matching entry has been found in the map.
104 int allocmap_pull(AllocMap* map, target_ulong address, MallocDescEx* pulled);
106 /* Pulls (removes) an entry from the head of the allocation descriptors map.
108 * map - Allocation descriptors map where to pull an entry from.
110 * from the head of the map.
112 * Zero if an allocation descriptor has been pulled from the head of the map,
113 * or 1 if map is empty.
115 int allocmap_pull_first(AllocMap* map, MallocDescEx* pulled);
117 /* Copies content of one memory allocation descriptors map to another.
119 * to - Map where to copy entries to.
120 * from - Map where to copy entries from.
132 /* Empties the map.
134 * map - Map to empty.
136 * Number of entries removed from the map.
138 int allocmap_empty(AllocMap* map);