version 1.76.2.4, 2016/07/27 01:13:50 |
version 1.76.2.5, 2016/07/27 03:25:00 |
Line 291 mdopen(dev_t dev, int flag, int fmt, str |
|
Line 291 mdopen(dev_t dev, int flag, int fmt, str |
|
cf->cf_atname = md_cd.cd_name; |
cf->cf_atname = md_cd.cd_name; |
cf->cf_unit = unit; |
cf->cf_unit = unit; |
cf->cf_fstate = FSTATE_STAR; |
cf->cf_fstate = FSTATE_STAR; |
self = config_attach_pseudo(cf)); |
self = config_attach_pseudo(cf); |
if (self != NULL) { |
if (self != NULL) { |
device_acquire(self); |
device_acquire(self); |
sc = device_private(self); |
sc = device_private(self); |
Line 465 mdstrategy(struct buf *bp) |
|
Line 465 mdstrategy(struct buf *bp) |
|
} |
} |
|
|
sc = device_private(self); |
sc = device_private(self); |
if (sc == NULL || sc->sc_type == MD_UNCONFIGURED) { |
if (sc->sc_type == MD_UNCONFIGURED) { |
bp->b_error = ENXIO; |
bp->b_error = ENXIO; |
goto done; |
goto done; |
} |
} |
Line 515 mdstrategy(struct buf *bp) |
|
Line 515 mdstrategy(struct buf *bp) |
|
break; |
break; |
} |
} |
|
|
done: |
|
mutex_exit(&sc->sc_lock); |
mutex_exit(&sc->sc_lock); |
|
done: |
biodone(bp); |
biodone(bp); |
device_release(self); |
if (self != NULL) |
|
device_release(self); |
} |
} |
|
|
static int |
static int |