Reputation: 255
could somebody show me how to generate software interrupt under Linux and then handle it with request_irq?
or maybe this is not possible.
Upvotes: 4
Views: 671
Reputation: 241
You can use softirq instead. You can define your sofirq via editing include/linux/interrupt.h. and then use function rasie_softirq() instead of reuqest_irq(),which notify the kernel there is softirq needs to be processed. then kernel will execute it at a appropriate in software interrupt context.
Example API
1. open_softwareirq();
2. raise_softirq();
Upvotes: 2