Lines Matching defs:vp
62 static int load_coff_section(struct vmspace *vmspace, struct vnode *vp, vm_offset_t offset, caddr_t vmaddr, size_t memsz, size_t filsz, vm_prot_t prot);
65 load_coff_section(struct vmspace *vmspace, struct vnode *vp, vm_offset_t offset,
95 "VM_PROT_ALL, MAP_PRIVATE | MAP_FIXED, OBJT_VNODE, vp, 0x%x)\n",
106 vp,
143 vp,
161 struct vnode *vp;
180 vp = nd.ni_vp;
181 if (vp == NULL)
184 error = VOP_GET_WRITECOUNT(vp, &writecount);
192 if ((error = VOP_GETATTR(vp, &attr, td->td_ucred)) != 0)
195 if ((vp->v_mount->mnt_flag & MNT_NOEXEC)
205 if ((error = VOP_ACCESS(vp, VEXEC, td->td_ucred, td)) != 0)
208 if ((error = VOP_OPEN(vp, FREAD, td->td_ucred, td, NULL)) != 0)
215 VOP_UNLOCK(vp, 0);
224 vp,
267 if ((error = load_coff_section(vmspace, vp, text_offset,
273 if ((error = load_coff_section(vmspace, vp, data_offset,
285 VOP_UNLOCK(vp, 0);
334 VOP_UNLOCK(imgp->vp, 0);
379 imgp->vp,
430 "imgp->vp, %08lx, %08lx, 0x%lx, 0x%lx, 0x%x)\n",
433 if ((error = load_coff_section(vmspace, imgp->vp,
447 "imgp->vp, 0x%08lx, 0x%08lx, 0x%lx, 0x%lx, 0x%x)\n",
450 if ((error = load_coff_section(vmspace, imgp->vp,
484 vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY);