|
|
| version 1.5, 2004/05/13 23:49:21 | version 1.6, 2004/05/19 22:52:50 |
|---|---|
| Line 71 struct sndstat_entry { | Line 71 struct sndstat_entry { |
| }; | }; |
| static struct sbuf sndstat_sbuf; | static struct sbuf sndstat_sbuf; |
| static dev_t sndstat_dev = 0; | |
| static int sndstat_isopen = 0; | static int sndstat_isopen = 0; |
| static int sndstat_bufptr; | static int sndstat_bufptr; |
| static int sndstat_maxunit = -1; | static int sndstat_maxunit = -1; |
| Line 326 sndstat_prepare(struct sbuf *s) | Line 325 sndstat_prepare(struct sbuf *s) |
| static int | static int |
| sndstat_init(void) | sndstat_init(void) |
| { | { |
| sndstat_dev = make_dev(&sndstat_cdevsw, SND_DEV_STATUS, UID_ROOT, GID_WHEEL, 0444, "sndstat"); | cdevsw_add(&sndstat_cdevsw, 0, 0); |
| make_dev(&sndstat_cdevsw, SND_DEV_STATUS, | |
| return (sndstat_dev != 0)? 0 : ENXIO; | UID_ROOT, GID_WHEEL, 0444, "sndstat"); |
| return (0); | |
| } | } |
| static int | static int |
| Line 341 sndstat_uninit(void) | Line 341 sndstat_uninit(void) |
| splx(s); | splx(s); |
| return EBUSY; | return EBUSY; |
| } | } |
| cdevsw_remove(&sndstat_cdevsw, 0, 0); | |
| if (sndstat_dev) | |
| destroy_dev(sndstat_dev); | |
| sndstat_dev = 0; | |
| splx(s); | splx(s); |
| return 0; | return 0; |
| } | } |