Lines Matching defs:anon
402 * anon. But now that we know there is only one map entry
509 * Slide the anon pointers up and clear out
695 * shared anon (to change the protection). in order to protect data
708 struct vm_anon *anon;
720 anon = amap->am_anon[lcv];
721 if (anon == NULL) {
724 if (anon->an_page) {
725 pmap_page_protect(anon->an_page, prot);
739 anon = amap->am_anon[slot];
740 if (anon->an_page) {
741 pmap_page_protect(anon->an_page, prot);
747 * amap_wipeout: wipeout all anon's in an amap; then free the amap!
773 struct vm_anon *anon;
777 anon = amap->am_anon[slot];
778 KASSERT(anon != NULL);
779 KASSERT(anon->an_ref != 0);
781 KASSERT(anon->an_lock == amap->am_lock);
782 UVMHIST_LOG(maphist," processing anon %#jx, ref=%jd",
783 (uintptr_t)anon, anon->an_ref, 0, 0);
789 if (__predict_true(--anon->an_ref == 0)) {
790 uvm_anfree(anon);
1029 struct vm_anon *anon, *nanon;
1035 * loop because some other process could reorder the anon's in the
1043 anon = amap->am_anon[slot];
1044 KASSERT(anon->an_lock == amap->am_lock);
1047 * If anon has only one reference - we must have already
1053 if (anon->an_ref == 1) {
1054 KASSERT(anon->an_page != NULL || anon->an_swslot != 0);
1062 pg = anon->an_page;
1074 KASSERT(pg->uanon == anon);
1089 * First - get a new anon and a page.
1112 * Copy the data and replace anon with the new one.
1117 anon->an_ref--;
1118 KASSERT(anon->an_ref > 0);
1295 struct vm_anon *anon;
1308 stop--; /* drop stop, since anon will be removed */
1310 anon = amap->am_anon[curslot];
1311 KASSERT(anon->an_lock == amap->am_lock);
1314 * Remove anon from the amap.
1330 KASSERT(anon->an_lock == amap->am_lock);
1331 if (--anon->an_ref == 0) {
1332 uvm_anfree(anon);
1392 struct vm_anon *anon;
1395 anon = am->am_anon[slot];
1396 KASSERT(anon->an_lock == am->am_lock);
1398 swslot = anon->an_swslot;
1405 rv = uvm_anon_pagein(am, anon);
1509 * => anon must have the lock associated with this amap.
1512 amap_add(struct vm_aref *aref, vaddr_t offset, struct vm_anon *anon,
1520 KASSERT(anon->an_lock == amap->am_lock);
1543 amap->am_anon[slot] = anon;
1545 "<- done (amap=%#jx, offset=%#x, anon=%#jx, rep=%d)",
1546 (uintptr_t)amap, offset, (uintptr_t)anon, replace);