I'm developing a kernel module which free the IRQ number 1 used to control keyboard in Intel architectures according to wikipedia. but after building and inserting the module, the keyboard still working.
is it an IRQ number issue or freeing IRQ is not enough to disable keyboard interrupts
#include <linux/module.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
static int __init mymodule_init(void) {
/* IRQ1 is the IRQ of the keyboard controlled under intel architecuter */
free_irq(1, NULL);
return 0;
}
static void __exit mymodule_exit(void) {
return;
}
module_init(mymodule_init);
module_exit(mymodule_exit);
MODULE_LICENSE("GPL");
Aucun commentaire:
Enregistrer un commentaire