Send an interrupt to the kernel form shell

Posted on

Problem :

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.

Solution :

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.

Leave a Reply

Your email address will not be published. Required fields are marked *