On Sat, 2008-10-18 at 18:01 +0200, Marco wrote: > The only problem is: what > happens if before I install the irq handler the user turn off the > system? I mean I can't "loose" the interrupt. In this case it'd be like > a spurious interrupt from system point view. Let me know if I'm wrong. > Thanks. > Make sure that 1- The grace period the hardware guys give you is long enough, theoretically, to install the handler _and_ handle it 1a- The grace period is guaranteed no matter how long the system has been on for 2- make the interrupt level-triggered so you don't miss it (note that that interrupt should be disabled before a handler is registered so you won't get a spurious interrupt) 3- ensure you don't do anything which would be affected by incorrect power, such as fs writes, before the handler has been installed both in the kernel and in userspace. You should be fine :-) --Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html