spl protection of selrecord / selwakeup ?

2003-08-20 Thread Dave Dolson
In FreeBSD 4.7, When writing a device driver, which spl should be used when calling selrecord or selwakeup() ? Some of the functions called by those functions (e.g., pfind ) have no protection of their own. Some drivers use spltty() or splimp(). Can someone explain why splhigh() is not requi

spltty / tty_imask question

2003-08-20 Thread Dave Dolson
A quick FreeBSD 4.7 kernel question: Is tty_imask supposed to have bits set for all sio devices? I.e., should bits 3 and 4 be set to indicate IRQ3 and IRQ4? I noticed by gdb of a running system that bit 4 was set, but not bit 3. We're seeing a panic due to re-acquiring COM_LOCK, and I was wonde