Lines Matching refs:newdv
141 * NOTE: prof_mknode returns with *newdv held once, if success.
144 prof_mknode(struct sdev_node *dir, char *name, struct sdev_node **newdv,
154 *newdv = dv;
161 *newdv = NULL;
166 *newdv = dv;
169 rv = sdev_nodeready(*newdv, vap, avp, arg, cred);
173 if (SDEVTOV(*newdv)->v_type == VDIR)
176 apply_glob_pattern(dir, *newdv);
195 struct sdev_node *newdv;
202 if (newdv = sdev_cache_lookup(dir, name)) {
203 *dirp = newdv;
204 *gdirp = newdv->sdev_origin;
227 error = prof_mknode(dir, name, &newdv, &vattr, avp, (void *)*gdirp,
231 ASSERT(newdv);
232 *dirp = newdv;
251 struct sdev_node *newdv;
256 newdv = sdev_cache_lookup(dir, rename);
257 if (newdv) {
258 ASSERT(newdv->sdev_state != SDEV_ZOMBIE);
259 SDEV_SIMPLE_RELE(newdv);
292 if (prof_mknode(dir, rename, &newdv, &vattr, avp,
294 ASSERT(newdv->sdev_state != SDEV_ZOMBIE);
295 SDEV_SIMPLE_RELE(newdv);
302 struct sdev_node *newdv;
304 if (prof_mknode(dir, lnm, &newdv, &sdev_vattr_lnk, NULL,
306 ASSERT(newdv->sdev_state != SDEV_ZOMBIE);
307 SDEV_SIMPLE_RELE(newdv);