error = uvm_fault(map, va, VM_FAULT_WIRE, access_type); if (error) {
rv = uvm_fault(map, va, VM_FAULT_WIRE, access_type); if (rv) {
uvm_fault_wire(map, start, end, access_type)	struct vm_map *map;	vaddr_t start, end;	vm_prot_t access_type;{	vaddr_t va;	int error;	/*	 * now fault it in a page at a time.   if the fault fails then we have	 * to undo what we have done.   note that in uvm_fault VM_PROT_NONE	 * is replaced with the max protection if fault_type is VM_FAULT_WIRE.	 */	/*	 * XXX work around overflowing a vaddr_t.  this prevents us from	 * wiring the last page in the address space, though.	 */	if (start > end) {		return EFAULT;	}	for (va = start ; va < end ; va += PAGE_SIZE) {		error = uvm_fault(map, va, VM_FAULT_WIRE, access_type);		if (error) {			if (va != start) {				uvm_fault_unwire(map, start, va);			}			return error;		}	}	return 0;}