Lines Matching refs:dev
80 dev_t dev,
88 vp = specvp(realvp, dev, vtyp, cr);
97 * Return a shadow special vnode for the given dev.
98 * If no snode exists for this dev create one and put it
99 * in a table hashed by <dev, realvp>. If the snode for
100 * this dev is already in the table return it (ref count is
111 dev_t dev,
129 ASSERT(vp->v_rdev == dev);
146 if ((sp = sfind(dev, type, vp)) == NULL) {
155 sp->s_dev = dev;
184 svp->v_rdev = dev;
187 cvp = get_cvp(dev, type, csp, &used_csp);
209 * Return a special vnode for the given dev; no vnode is supplied
211 * table hashed by <dev, NULL>. The snode will be flushed from the
217 * else is creating a snode for (dev, type) at this time.
220 makespecvp(dev_t dev, vtype_t type)
228 cvp = commonvp(dev, type);
233 sp->s_dev = dev;
251 svp->v_rdev = dev;
404 specfind(dev_t dev, vtype_t type)
410 st = stable[STABLEHASH(dev)];
412 if (st->s_dev == dev) {
521 * Returns a special vnode for the given dev. The vnode is the
529 dev_t dev,
538 if ((sp = sfind(dev, type, NULL)) == NULL) {
545 sp->s_dev = dev;
562 svp->v_rdev = dev;
571 * Returns a special vnode for the given dev. The vnode is the
576 commonvp(dev_t dev, vtype_t type)
585 if ((sp = sfind(dev, type, NULL)) == NULL) {
591 sp->s_dev = dev;
608 svp->v_rdev = dev;
622 * These routines maintain a table of snodes hashed by dev so
623 * that the snode for an dev can be found if it already exists.
667 * Lookup an snode by <dev, type, vp>.
676 dev_t dev,
684 st = stable[STABLEHASH(dev)];
687 if (st->s_dev == dev && svp->v_type == type &&
796 dev_t dev;
827 if ((dev = getudev()) == -1)
828 dev = 0;
829 specdev = makedevice(dev, 0);
839 dev_t dev;
842 dev = sp->s_dev;
853 error = dev_close(dev, flag, OTYP_CHR, cr);
864 bflush(dev);
865 binval(dev);
866 error = dev_close(dev, flag, OTYP_BLK, cr);
1053 spec_size_invalidate(dev_t dev, vtype_t type)
1059 if ((csp = sfind(dev, type, NULL)) != NULL) {