How to know if irq is free in linux? -
how check if irq free before using free_irq() api in linux? in code, function in using free_irq() api getting called many times , irq getting free in first call, in subsequent call kernel crashing while trying free free irq.
so can put condition above free_irq
gets called once. :
initialize #define free_irq true
if(free_irq == true) { free_irq(); free_irq = false; }
Comments
Post a Comment