/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_resv.c | 575 nsc_dev_t *newdev = fd->sf_owner->si_dev; local 580 if (newdev == dev) { 586 if ((try = mutex_tryenter(&newdev->nsc_lock)) != 0) 589 mutex_exit(&newdev->nsc_lock); 595 mutex_exit(&newdev->nsc_lock); 603 mutex_enter(&newdev->nsc_lock); 608 mutex_exit(&newdev->nsc_lock);
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | clone.c | 166 dev_t newdev; local 215 newdev = makedevice(emaj, 0); /* create new style device number */ 226 vp = makespecvp(newdev, VCHR); 281 error = (*rq->q_qinfo->qi_qopen)(rq, &newdev, flag, CLONEOPEN, crp); 285 *devp = newdev; 286 if (getmajor(newdev) != emaj) 299 ddi_major_to_name(emaj), getmajor(newdev));
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | sd.c | 252 struct devicelist *newdev = NULL; local 278 "libscsi\n"), newdev->drvname); 303 if ((newdev = calloc(1, sizeof (struct devicelist))) 314 if ((newdev->drvname = calloc(1, strlen(driver) + 1)) 320 FW_SD_FREE_DEVICELIST(newdev, devpath) 323 (void) strlcpy(newdev->drvname, driver, strlen(driver) + 1); 325 if ((newdev->classname = calloc(1, strlen(driver) + 1)) 331 FW_SD_FREE_DRV_NAME(newdev, devpath) 334 (void) strlcpy(newdev->classname, driver, strlen(driver) + 1); 337 if ((newdev [all...] |
H A D | hermon.c | 263 struct devicelist *newdev; local 282 if ((newdev = calloc(1, sizeof (struct devicelist))) == NULL) { 293 if ((newdev->access_devname = calloc(1, devlength)) == NULL) { 296 (void) free(newdev); 300 snprintf(newdev->access_devname, devlength, 303 if ((newdev->ident = calloc(1, sizeof (struct vpr))) == NULL) { 306 (void) free(newdev->access_devname); 307 (void) free(newdev); 313 rv = cnx_identify(newdev); 315 (void) free(newdev [all...] |
H A D | ses.c | 292 struct devicelist *newdev; local 333 if ((newdev = calloc(1, sizeof (struct devicelist))) 347 if ((newdev->access_devname = calloc(1, devlength)) == NULL) { 353 free(newdev); 356 snprintf(newdev->access_devname, devlength, 359 if ((newdev->drvname = calloc(1, strlen(driver) + 1)) 365 free(newdev->access_devname); 366 free(newdev); 370 (void) strlcpy(newdev->drvname, driver, 373 if ((newdev [all...] |
H A D | tavor.c | 612 struct devicelist *newdev; local 630 if ((newdev = calloc(1, sizeof (struct devicelist))) 643 if ((newdev->access_devname = calloc(1, devlength)) == NULL) { 647 (void) free(newdev); 650 snprintf(newdev->access_devname, devlength, 655 if ((newdev->ident = calloc(1, sizeof (struct vpr))) == NULL) { 659 (void) free(newdev->access_devname); 660 (void) free(newdev); 665 rv = tavor_identify(newdev); 667 (void) free(newdev [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fsck.c | 100 } *newdev(), *getdev(); 356 dp = newdev(&vget); 541 dp = newdev(&vget); 713 newdev(struct vfstab *vfsp) function
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/ |
H A D | piclenvd.c | 608 lpm_dev_t *newdev; local 630 newdev = malloc(sizeof (*newdev)); 631 if (newdev == NULL) { 636 memset(newdev, 0, sizeof (*newdev)); 638 newdev->nodeh = nodeh; 639 newdev->temp_lpm_tbl = temp_lpm_tbl; 641 /* add newdev to the list */ 642 newdev [all...] |
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvnops.c | 449 spec_clone(struct vnode **vpp, dev_t newdev, int vtype, struct stdata *stp) argument 453 major_t newmaj = getmajor(newdev); 462 ASSERT(dev != newdev); 480 newvp = makespecvp(newdev, vtype); 500 * If we cloned to an opened newdev that already has called 506 * Establish s_dip association for newdev. 530 /* derive association from newdev */ 531 dip = e_ddi_hold_devi_by_dev(newdev, 0); 563 dev_t dev, newdev; local 589 newdev [all...] |
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi.c | 372 dev_t newdev; local 437 newdev = vp->v_rdev; 438 maj = getmajor(newdev); 441 error = stropen(vp, &newdev, flags, cr); 446 ASSERT(newdev != vp->v_rdev); 448 sti->sti_dev = newdev; 449 vp->v_rdev = newdev;
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa.c | 5337 nvlist_t **newdev = NULL; local 5340 newdev = kmem_alloc((count - 1) * sizeof (void *), KM_SLEEP); 5345 VERIFY(nvlist_dup(dev[i], &newdev[j++], KM_SLEEP) == 0); 5349 VERIFY(nvlist_add_nvlist_array(config, name, newdev, count - 1) == 0); 5352 nvlist_free(newdev[i]); 5355 kmem_free(newdev, (count - 1) * sizeof (void *));
|
/illumos-gate/usr/src/uts/common/io/lvm/md/ |
H A D | md_mddb.c | 3058 * and from newdev when a new mddb is being added. 5530 md_dev64_t *newdev; local 5933 newdev = kmem_zalloc(sizeof (md_dev64_t) * MDDB_NLB, KM_SLEEP); 5936 newdev[li] = 0; 5944 newdev[li] = dev; 5947 &(newdev[li]), 6042 md_getminor(newdev 6045 md_getminor(newdev[li])) { 6048 md_getminor(newdev 6056 md_getminor(newdev[l 8263 newdev( function [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devfsadm.c | 2818 struct login_dev *newdev; local 2841 for (newdev = login_dev_cache; newdev; newdev = newdev->ldev_next) { 2843 newdev->ldev_device); 2845 if (regexec(&newdev->ldev_device_regex, devlink, 0, 2848 newdev->ldev_device); 2853 if (newdev == NULL) 2895 list = newdev 5845 dev_t newdev; local [all...] |