[driver-discuss] interrupt enable/disable

Garrett D'Amore garrett at damore.org
Mon May 21 12:42:41 PDT 2007


Paul Durrant wrote:
> Just come across some weirdness with my driver; when I call
> ddi_intr_block_disable() to remove my interrupts and then call
> ddi_intr_block_enable() shortly afterwards, I no longer get any
> interrupts.
> Should I be able to call those functions to disable and re-enable
> interrupts in that way (I need to do some processing in between to
> reset my h/w) or do I need to tear down and re-create more state?
>
>  Paul
>
 From the man page:

     The ddi_intr_block_enable() function can be used only if the
     device  or  host  bridge  supports  the block enable/disable
     feature. The ddi_intr_get_cap() function returns the RO flag
     DDI_INTR_FLAG_BLOCK  if  the  device or host bridge supports
     the interrupt block enable/disable  feature  for  the  given
     interrupt type. The ddi_intr_block_enable() function is use-


Not sure if this is helpful or not....

    --Garrett




More information about the driver-discuss mailing list