Lines Matching defs:anon_map
269 * The anon_map structure is used by various clients of the anon layer to
272 * same anon_map structure. Also, if a segment is unmapped
273 * in the middle where an anon_map structure exists, the
274 * newly created segment will also share the anon_map structure,
278 * a range of anon slots in the array given by the anon_map
280 * we have to store the size of the anon array in the anon_map
289 * anon_map's members, whereas reader lock and anon_array_lock are
298 * szc in the anon_map structure. For MAP_SHARED, the amp->szc is either
302 typedef struct anon_map {
303 krwlock_t a_rwlock; /* protect anon_map and anon array */
307 size_t swresv; /* swap space reserved for this anon_map */
327 #define ANON_MAP_SHIFT 6 /* log2(sizeof (struct anon_map)) */
394 extern int anon_disclaim(struct anon_map *,
402 extern int anon_map_getpages(struct anon_map *, ulong_t,
406 extern int anon_map_privatepages(struct anon_map *, ulong_t,
414 extern int anon_map_createpages(struct anon_map *, ulong_t,
418 extern int anon_map_demotepages(struct anon_map *, ulong_t,
421 extern void anon_shmap_free_pages(struct anon_map *, ulong_t, size_t);
424 extern struct anon_map *anonmap_alloc(size_t, size_t, int);
425 extern void anonmap_free(struct anon_map *);
426 extern void anonmap_purge(struct anon_map *);
442 extern void anon_array_enter(struct anon_map *, ulong_t,
444 extern int anon_array_try_enter(struct anon_map *, ulong_t,