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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -