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.

Answers


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();

Need Your Help

Reading input pins with johnny-five and arduino

javascript node.js arduino johnny-five

I'm working on an application using node.js and arduino.

Display caret position in textfield in Firefox or resize textfield as needed

jquery firefox textbox mozilla maskedtextbox

There is an annoying bug in Firefox which allows me to set the caret position in a textfield, but it does not automatically scroll that caret into view.