Generate and handle software interupt
could somebody show me how to generate software interrupt under Linux and then handle it with request_irq?
or maybe this is not possible.
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.
1. open_softwareirq(); 2. raise_softirq();