VREF(cmd->ev_vp);
vmcmd_map_pagedvn(p, cmd)	struct proc *p;	struct exec_vmcmd *cmd;{	struct uvm_object *uobj;	int error;	/*	 * map the vnode in using uvm_map.	 */	if (cmd->ev_len == 0)		return(0);	if (cmd->ev_offset & PAGE_MASK)		return(EINVAL);	if (cmd->ev_addr & PAGE_MASK)		return(EINVAL);	if (cmd->ev_len & PAGE_MASK)		return(EINVAL);	/*	 * first, attach to the object	 */	uobj = uvn_attach((void *) cmd->ev_vp, VM_PROT_READ|VM_PROT_EXECUTE);	if (uobj == NULL)		return(ENOMEM);	VREF(cmd->ev_vp);	/*	 * do the map	 */	error = uvm_map(&p->p_vmspace->vm_map, &cmd->ev_addr, cmd->ev_len,	    uobj, cmd->ev_offset, 0,	    UVM_MAPFLAG(cmd->ev_prot, VM_PROT_ALL, UVM_INH_COPY,	    UVM_ADV_NORMAL, UVM_FLAG_COPYONW|UVM_FLAG_FIXED));	if (error) {		uobj->pgops->pgo_detach(uobj);	}	return(error);}