Lines Matching refs:ddv

116 	struct sdev_node *ddv = VTOSDEV(dvp);  in devnet_lookup()  local
123 if (SDEVTOV(ddv)->v_type != VDIR) in devnet_lookup()
131 *vpp = SDEVTOV(ddv); in devnet_lookup()
140 *vpp = SDEVTOV(ddv->sdev_dotdot); in devnet_lookup()
145 rw_enter(&ddv->sdev_contents, RW_WRITER); in devnet_lookup()
150 if ((dv = sdev_cache_lookup(ddv, nm)) != NULL) { in devnet_lookup()
159 if (ddv->sdev_state == SDEV_ZOMBIE) in devnet_lookup()
166 error = sdev_mknode(ddv, nm, &dv, &vattr, NULL, NULL, cred, SDEV_READY); in devnet_lookup()
192 rw_exit(&ddv->sdev_contents); in devnet_lookup()
196 rw_exit(&ddv->sdev_contents); in devnet_lookup()
208 struct sdev_node *ddv = arg; in devnet_filldir_datalink() local
214 ASSERT(RW_WRITE_HELD(&ddv->sdev_contents)); in devnet_filldir_datalink()
219 if ((dv = sdev_cache_lookup(ddv, (char *)link)) != NULL) in devnet_filldir_datalink()
228 if (sdev_mknode(ddv, (char *)link, &dv, &vattr, NULL, NULL, kcred, in devnet_filldir_datalink()
248 devnet_filldir(struct sdev_node *ddv) in devnet_filldir() argument
253 ASSERT(RW_READ_HELD(&ddv->sdev_contents)); in devnet_filldir()
254 if (rw_tryupgrade(&ddv->sdev_contents) == 0) { in devnet_filldir()
255 rw_exit(&ddv->sdev_contents); in devnet_filldir()
256 rw_enter(&ddv->sdev_contents, RW_WRITER); in devnet_filldir()
259 for (dv = SDEV_FIRST_ENTRY(ddv); dv; dv = next) { in devnet_filldir()
260 next = SDEV_NEXT_ENTRY(ddv, dv); in devnet_filldir()
281 (void) sdev_cache_update(ddv, &dv, dv->sdev_name, in devnet_filldir()
286 if (((ddv->sdev_flags & SDEV_BUILD) == 0) && !dls_devnet_rebuild()) in devnet_filldir()
289 if (SDEV_IS_GLOBAL(ddv)) { in devnet_filldir()
295 (void) devnet_filldir_datalink(linkid, ddv); in devnet_filldir()
299 devnet_filldir_datalink, ddv); in devnet_filldir()
302 ddv->sdev_flags &= ~SDEV_BUILD; in devnet_filldir()
305 rw_downgrade(&ddv->sdev_contents); in devnet_filldir()