return error;
return (error == KERN_SUCCESS ? 0 : ENOMEM);
sys_munlock(p, v, retval)	struct proc *p;	void *v;	register_t *retval;{	struct sys_munlock_args /* {		syscallarg(const void *) addr;		syscallarg(size_t) len;	} */ *uap = v;	vaddr_t addr;	vsize_t size, pageoff;	int error;	/*	 * extract syscall args from uap	 */	addr = (vaddr_t)SCARG(uap, addr);	size = (vsize_t)SCARG(uap, len);	/*	 * align the address to a page boundary, and adjust the size accordingly	 */	pageoff = (addr & PAGE_MASK);	addr -= pageoff;	size += pageoff;	size = (vsize_t)round_page(size);	/* disallow wrap-around. */	if (addr + size < addr)		return (EINVAL);#ifndef pmap_wired_count	if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)		return (error);#endif	error = uvm_map_pageable(&p->p_vmspace->vm_map, addr, addr+size, TRUE,	    0);	return error;}