|
|
| version 1.6, 2004/05/19 22:52:50 | version 1.7, 2004/05/21 01:14:27 |
|---|---|
| Line 325 sndstat_prepare(struct sbuf *s) | Line 325 sndstat_prepare(struct sbuf *s) |
| static int | static int |
| sndstat_init(void) | sndstat_init(void) |
| { | { |
| cdevsw_add(&sndstat_cdevsw, 0, 0); | cdevsw_add(&sndstat_cdevsw, -1, SND_DEV_STATUS); |
| make_dev(&sndstat_cdevsw, SND_DEV_STATUS, | make_dev(&sndstat_cdevsw, SND_DEV_STATUS, |
| UID_ROOT, GID_WHEEL, 0444, "sndstat"); | UID_ROOT, GID_WHEEL, 0444, "sndstat"); |
| return (0); | return (0); |
| Line 341 sndstat_uninit(void) | Line 341 sndstat_uninit(void) |
| splx(s); | splx(s); |
| return EBUSY; | return EBUSY; |
| } | } |
| cdevsw_remove(&sndstat_cdevsw, 0, 0); | cdevsw_remove(&sndstat_cdevsw, -1, SND_DEV_STATUS); |
| splx(s); | splx(s); |
| return 0; | return 0; |
| } | } |