Porting Interrupt registertion code from kernel 2.6 to kernel 4.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to port my older KLM (Kernel Loadable Module) file (klm_prc.ko)  which I insmod on kernel 2.6 and which used to register interrupt using following method:
request_irq(INTR_ID, (void *)intr_isr, IRQF_DISABLED, "INTR ISR", NULL)

However above call throws error when I insmod it on kernel 4.14

# > insmod klm_prc.ko

klm_prc: loading out-of-tree module taints kernel.
KERNEL_VERSION 132619
LINUX_VERSION_CODE 265728

unable to install INTR handler
Failed to install ISR 0
insmod: can't insert 'klm_prc.ko': Resource temporarily unavailable
# >

My question is, how do I properly port this code to kernel 4.14 ? 
in other words, how to I register interrupt service routine (isr) in kernel version 4.14?

thanks,
Khalid.



thanks,
Khalid.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux