In some of the drivers while browsing 2.6.35, it is observed tht request_irq is passed a value 0 for irq flags. When seen in interrupt.h – 0 corresponds to IRQ_TRIGGER_NONE;
Is this equivalent to the case of IRQ_NONE in previous kernels?
Thanks.
The actual flags passed into
request_irq()are defined in a comment in :These are bits, so a logical OR (ie |) of a subset of these can be passed in; and if none apply, then the empty set is perfectly fine — ie a value 0 for the flags parameter.
Since
IRQF_TRIGGER_NONEis 0, passing 0 intorequest_irq()just says leave the triggering configuration of the IRQ alone — ie however the hardware/firmware configured it.IRQ_NONEis in a different namespace; it is one of the possible return values of an interrupt handler (the function passed intorequest_irq()), and it means that the interrupt handler did not handle an interrupt.