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

Lines Matching defs:vp

287 need_fsevent(int type, vnode_t vp)
293 if (vp->v_tag == VT_DEVFS) {
627 struct vnode *vp;
634 vp = va_arg(ap, struct vnode *);
635 if (vp == NULL) {
646 if ((ret = vnode_getattr(vp, &va, vfs_context_kernel())) != 0) {
647 // printf("add_fsevent: failed to getattr on vp %p (%d)\n", cur->fref.vp, ret);
655 cur->mode = (int32_t)vnode_vttoif(vnode_vtype(vp)) | va.va_mode;
665 if ((ret = vn_getpath(vp, pathbuff, &pathbuff_len)) != 0 || pathbuff[0] == '\0') {
670 if (vp->v_parent != NULL) {
671 vp = vp->v_parent;
672 } else if (vp->v_mount) {
673 strlcpy(pathbuff, vp->v_mount->mnt_vfsstat.f_mntonname, MAXPATHLEN);
676 vp = NULL;
679 if (vp == NULL) {
684 ret = vn_getpath(vp, pathbuff, &pathbuff_len);
687 if (ret != 0 || vp == NULL) {
903 panic("%s:%d: no more fref.vp!\n", __FILE__, __LINE__);
904 // vnode_rele_ext(copy.fref.vp, O_EVTONLY, 0);
912 panic("%s:%d: no more fref.vp!\n", __FILE__, __LINE__);
913 // vnode_rele_ext(dest_copy.fref.vp, O_EVTONLY, 0);
2379 get_fse_info(struct vnode *vp, fse_info *fse, __unused vfs_context_t ctx)
2389 if (vp->v_flag & VISHARDLINK) {
2390 if (vp->v_type == VDIR) {
2397 if (vnode_getattr(vp, &va, vfs_context_kernel()) != 0) {
2402 return vnode_get_fse_info_from_vap(vp, fse, &va);
2406 vnode_get_fse_info_from_vap(vnode_t vp, fse_info *fse, struct vnode_attr *vap)
2410 fse->mode = (int32_t)vnode_vttoif(vnode_vtype(vp)) | vap->va_mode;
2413 if (vp->v_flag & VISHARDLINK) {
2415 if (vp->v_type == VDIR) {
2426 create_fsevent_from_kevent(vnode_t vp, uint32_t kevents, struct vnode_attr *vap)
2442 fsevent_type = FSE_STAT_CHANGED; // XXXdbg - because vp is a dir and the thing created/removed lived inside it
2447 // printf("convert_kevent: kevents 0x%x fsevent type 0x%x (for %s)\n", kevents, fsevent_type, vp->v_name ? vp->v_name : "(no-name)");
2451 fse.mode = vnode_vttoif(vnode_vtype(vp)) | (uint32_t)vap->va_mode;
2452 if (vp->v_flag & VISHARDLINK) {
2454 if (vp->v_type == VDIR) {
2461 if (vp->v_type == VDIR) {
2470 if (vn_getpath(vp, pathbuf, &len) == 0) {