Subject: callout_init in fooattach or foo_attach - bug or no?
To: None <tech-kern@NetBSD.org>
From: Chapman Flack <nblists@anastigmatix.net>
List: tech-kern
Date: 01/04/2006 12:20:51
I can't tell if this is a bug. It doesn't seem to cause any problem,
bu midi.c calls callout_init(9) from midiattach. midiattach then calls
midi_attach.  midiattach is the function given in CFATTACH_DECL, so
it gets called in the usual course of events by autoconfigure.

But when a certain device like pcppi attaches midi directly, it
calls midi_attach, not midiattach.  In that case it seems like the
callout_init would be missed.  Can someone give me another opinion
either that this is or isn't a bug?  If it's a bug, is it in midi.c
(having callout_init in the wrong place) or pcppi (calling the wrong
midi attach function)?

Thanks,
-Chap