Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a linux module, and I want to test it, so right now it should be triggered when an interrupt happens, so before testing it for real, I want to send the interrupt by hand and see what happens. I have tried writing kill 8 0. But nothing happened.

  • Is kill filtering interrupts to the kernel?
  • Is there a way to issue an interrupt from the shell?

Note, I'm working with interrupt 8 which should be a hardware interrupt.

share|improve this question

Why you think that signal must be forwarded to your module? I think you must write new syscall to testing your module. you can calling your module function in your syscall for testing. and calling your syscall in C program.

C sample-->new syscall with args(that arg specify modules func)-->your module function.

share|improve this answer
Ugh, this is hard to read. I am not sure what you are getting at either. Can you expand this with real information, otherwise delegate it to a comment and delete this as an answer.\ – AthomSfere Dec 22 '13 at 17:47
Well, if I take over the IDT (which is the place that the OS checks what to do when an interrupt happens) then my function should be executed. I have another code which took over the pagefault interrupt, works like a charm on every pagefault. But when I switched it to the rtc - somehow nothing is happening. – Kahil Dec 22 '13 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.