Lines Matching refs:as
50 #include <vm/as.h>
126 * Map address "addr" in address space "as" into a kernel virtual address.
130 mapin(struct as *as, caddr_t addr, int writing)
143 pfnum = hat_getpfnum(as->a_hat, addr);
169 mapout(struct as *as, caddr_t addr, caddr_t vaddr, int writing)
194 struct as *as = p->p_as;
202 AS_LOCK_ENTER(as, RW_WRITER);
204 if ((seg = as_segat(as, page)) == NULL ||
206 AS_LOCK_EXIT(as);
224 AS_LOCK_EXIT(as);
232 * thread. But since we locked the address space as a writer no other
233 * thread can cause a copy on write. S_READ_NOCOW is passed as the
244 if (SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTLOCK, rw)) {
247 AS_LOCK_EXIT(as);
261 vaddr = mapin(as, addr, writing);
298 mapout(as, addr, vaddr, writing);
303 (void) SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTUNLOCK, rw);
308 AS_LOCK_EXIT(as);