• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/kern/

Lines Matching defs:vp

160 int __attribute__ ((noinline)) pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t  buffer, uint32_t buffersize, int32_t * retval);
161 int __attribute__ ((noinline)) pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval);
172 int fill_vnodeinfo(vnode_t vp, struct vnode_info *vinfo);
763 vnode_t vp;
766 vp = ut->uu_cdir;
767 if (vp != NULLVP) {
769 *vpp = vp;
771 *vidp = vp->v_id;
780 vnode_t vp = NULLVP;
788 error = fill_taskthreadinfo(p->task, threadaddr, 0, (struct proc_threadinfo_internal *)&pinfo->pt, (void *)&vp, &vid);
792 if ((vp != NULLVP) && ((vnode_getwithvid(vp, vid)) == 0)) {
793 error = fill_vnodeinfo(vp, &pinfo->pvip.vip_vi) ;
796 vn_getpath(vp, &pinfo->pvip.vip_path[0], &count);
799 vnode_put(vp);
864 vnode_t vp;
873 vp = (vnode_t)vnodeaddr;
874 if ((vnode_getwithvid(vp, vnodeid)) == 0) {
876 error = fill_vnodeinfo(vp, &preginfo.prp_vip.vip_vi);
878 vn_getpath(vp, &preginfo.prp_vip.vip_path[0], &count);
881 vnode_put(vp);
897 vnode_t vp;
908 vp = (vnode_t)vnodeaddr;
909 if ((vnode_getwithvid(vp, vnodeid)) == 0) {
911 error = fill_vnodeinfo(vp, &preginfo.prp_vip.vip_vi);
913 vn_getpath(vp, &preginfo.prp_vip.vip_path[0], &count);
916 vnode_put(vp);
934 vnode_t vp;
950 vp = (vnode_t)vnodeaddr;
951 if ((vnode_getwithvid(vp, vnodeid)) == 0) {
959 ret = vnode_getattr(vp, &va, vfs_context_current());
961 vnode_put(vp);
967 error = fill_vnodeinfo(vp, &preginfo.prp_vip.vip_vi);
969 vn_getpath(vp, &preginfo.prp_vip.vip_path[0], &count);
972 vnode_put(vp);
975 vnode_put(vp);
1586 pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval)
1591 if ((error = vnode_getwithvid(vp, vid)) != 0) {
1596 error = fill_vnodeinfo(vp, &vfi.pvi);
1597 vnode_put(vp);
1607 pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval)
1612 if ((error = vnode_getwithvid(vp, vid)) != 0) {
1617 error = fill_vnodeinfo(vp, &vfip.pvip.vip_vi) ;
1620 vn_getpath(vp, &vfip.pvip.vip_path[0], &count);
1622 vnode_put(vp);
1627 vnode_put(vp);
1660 fill_vnodeinfo(vnode_t vp, struct vnode_info *vinfo)
1667 error = vn_stat(vp, &sb, NULL, 1, context);
1675 if (vp->v_mount != dead_mountp) {
1676 vinfo->vi_fsid = vp->v_mount->mnt_vfsstat.f_fsid;
1681 vinfo->vi_type = vp->v_type;
1838 vnode_t vp;
1841 if ((error = fp_getfvpandvid(p, fd, &fp, &vp, &vid)) !=0) {
1846 error = pid_vnodeinfo(vp, vid, fp, closeonexec, buffer, buffersize, retval);
1851 vnode_t vp;
1854 if ((error = fp_getfvpandvid(p, fd, &fp, &vp, &vid)) !=0) {
1860 error = pid_vnodeinfopath(vp, vid, fp, closeonexec, buffer, buffersize, retval);
1961 vnode_t vp;
1967 vp = (struct vnode *)fg->fg_data;
1968 error = pid_vnodeinfopath(vp, vnode_vid(vp), fp, 0,