Lines Matching refs:ufs_devp
68 devid_t *ufs_devp; variable
551 if (ufs_devp) /* already mounted */ in bufs_mountroot()
554 ufs_devp = (devid_t *)bkmem_alloc(sizeof (devid_t)); in bufs_mountroot()
555 ufs_devp->di_taken = 1; in bufs_mountroot()
556 ufs_devp->di_dcookie = 0; in bufs_mountroot()
557 ufs_devp->di_desc = (char *)bkmem_alloc(strlen(str) + 1); in bufs_mountroot()
558 (void) strcpy(ufs_devp->di_desc, str); in bufs_mountroot()
559 bzero(ufs_devp->un_fs.dummy, SBSIZE); in bufs_mountroot()
566 head->fi_devp = ufs_devp; in bufs_mountroot()
569 head->fi_memp = (caddr_t)&(ufs_devp->un_fs.di_fs); in bufs_mountroot()
578 if (ufs_devp->un_fs.di_fs.fs_magic != FS_MAGIC) { in bufs_mountroot()
579 dprintf("fs magic = 0x%x\n", ufs_devp->un_fs.di_fs.fs_magic); in bufs_mountroot()
596 if (ufs_devp == NULL) in bufs_unmountroot()
629 filep->fi_devp = ufs_devp; /* dev is already "mounted" */ in bufs_open()
778 ufs_devp->di_taken = 0; in bufs_closeall()
779 bkmem_free((char *)ufs_devp, sizeof (devid_t)); in bufs_closeall()
781 ufs_devp = (devid_t *)NULL; in bufs_closeall()