Lines Matching defs:new_dev
1202 devdirent_t * new_dev = NULL;
1250 &typeinfo, NULL, NULL, &new_dev) == 0) {
1251 new_dev->de_dnp->dn_gid = gid;
1252 new_dev->de_dnp->dn_uid = uid;
1253 new_dev->de_dnp->dn_mode |= perms;
1254 new_dev->de_dnp->dn_clone = clone;
1255 devfs_propogate(dnp->dn_typeinfo.Dir.myname, new_dev);
1261 return new_dev;
1284 devdirent_t * new_dev = NULL;
1339 &typeinfo, NULL, NULL, &new_dev) == 0) {
1340 new_dev->de_dnp->dn_gid = gid;
1341 new_dev->de_dnp->dn_uid = uid;
1342 new_dev->de_dnp->dn_mode |= perms;
1343 new_dev->de_dnp->dn_clone = NULL;
1346 mac_devfs_label_associate_device(dev, new_dev->de_dnp, buff);
1348 devfs_propogate(dnp->dn_typeinfo.Dir.myname, new_dev);
1354 return new_dev;
1369 devdirent_t * new_dev = NULL;
1404 || dev_add_name(p, dirnode, NULL, orig->de_dnp, &new_dev))
1408 || dev_add_name(buf, dirnode, NULL, orig->de_dnp, &new_dev))
1411 devfs_propogate(dirnode->dn_typeinfo.Dir.myname, new_dev);
1416 return ((new_dev != NULL) ? 0 : -1);