Lines Matching refs:vp
260 need_fsevent(int type, vnode_t vp)
266 if (vp->v_tag == VT_DEVFS) {
609 struct vnode *vp;
611 vp = va_arg(ap, struct vnode *);
614 if (vn_getpath(vp, pathbuff, &pathbuff_len) != 0 || pathbuff[0] == '\0') {
838 panic("%s:%d: no more fref.vp\n", __FILE__, __LINE__);
839 // vnode_rele_ext(kfse->fref.vp, O_EVTONLY, 0);
863 panic("%s:%d: no more fref.vp\n", __FILE__, __LINE__);
864 // vnode_rele_ext(kfse_dest->fref.vp, O_EVTONLY, 0);
947 struct vnode *vp;
954 vp = va_arg(ap, struct vnode *);
955 if (vp == NULL) {
966 if ((ret = vnode_getattr(vp, &va, vfs_context_kernel())) != 0) {
967 // printf("add_fsevent: failed to getattr on vp %p (%d)\n", cur->fref.vp, ret);
979 cur->mode = (int32_t)vnode_vttoif(vnode_vtype(vp)) | va.va_mode;
989 if (vn_getpath(vp, pathbuff, &pathbuff_len) != 0 || pathbuff[0] == '\0') {
990 printf("add_fsevent: no name hard-link! dropping the event. (event %d vp == %p (%s)). \n",
991 type, vp, vp->v_name ? vp->v_name : "-UNKNOWN-FILE");
1213 panic("%s:%d: no more fref.vp!\n", __FILE__, __LINE__);
1214 // vnode_rele_ext(copy.fref.vp, O_EVTONLY, 0);
1222 panic("%s:%d: no more fref.vp!\n", __FILE__, __LINE__);
1223 // vnode_rele_ext(dest_copy.fref.vp, O_EVTONLY, 0);
2554 get_fse_info(struct vnode *vp, fse_info *fse, __unused vfs_context_t ctx)
2564 if (vp->v_flag & VISHARDLINK) {
2565 if (vp->v_type == VDIR) {
2572 if (vnode_getattr(vp, &va, vfs_context_kernel()) != 0) {
2579 fse->mode = (int32_t)vnode_vttoif(vnode_vtype(vp)) | va.va_mode;
2582 if (vp->v_flag & VISHARDLINK) {
2584 if (vp->v_type == VDIR) {