Home | History | Annotate | Download | only in uvm

Lines Matching defs:an

54  * avoid an endless loop, the amap cache's allocator cannot allocate
55 * memory from an amap (it currently goes through the kernel uobj, so
75 * what is ppref? ppref is an _optional_ amap feature which is used
79 * when enabled, an array of ints is allocated for the pprefs. this
82 * to only a part of an amap). if the allocation of the array fails
85 * give up (after all, this is an optional feature!).
92 * of the chunk. here is an example:
145 * amap_alloc1: allocate an amap, but do not initialise the overlay.
226 * amap_alloc: allocate an amap to manage "sz" bytes of anonymous VM
314 * amap_free: free an amap
343 * amap_extend: extend the size of an amap (if needed)
345 * => called from uvm_map when we want to extend an amap to cover
348 * => to safely extend an amap it should have a reference count of
401 * entries, and so any slot from 0 to am_nslot can have an
481 * alloc time and we never shrink an allocation.
747 * amap_wipeout: wipeout all anon's in an amap; then free the amap!
811 * => an entry with a null amap pointer will get a new (blank) one.
841 * Is there an amap to copy? If not, create one.
880 * Allocate an initialised amap and install it.
1005 * amap_cow_now: resolve all copy-on-write faults in an amap now for fork(2)
1170 * amap_pp_establish: add a ppref array to an amap, if possible.
1193 * amap_pp_adjref: adjust reference count to a part of an amap using the
1264 * amap_wiperange: wipe out a range of an amap.
1440 * amap_lookup: look up a page in an amap.
1448 struct vm_anon *an;
1456 an = amap->am_anon[slot];
1460 (uintptr_t)amap, offset, (uintptr_t)an, 0);
1463 KASSERT(an == NULL || an->an_ref != 0);
1464 KASSERT(an == NULL || an->an_lock == amap->am_lock);
1465 return an;
1469 * amap_lookups: look up a range of pages in an amap.
1494 struct vm_anon * const an = anons[i];
1495 if (an == NULL) {
1498 KASSERT(an->an_ref != 0);
1499 KASSERT(an->an_lock == amap->am_lock);
1506 * amap_add: add (or replace) a page to an amap.
1550 * amap_unadd: remove a page from an amap.
1615 * amap_ref: gain a reference to an amap.
1636 * amap_unref: remove a reference to an amap.