Re: facing a problem with irq handler,please help me

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

 




On 01 Oct 2009, at 5:33 PM, Greg KH wrote:

On Thu, Oct 01, 2009 at 08:55:27PM +0530, Harinderjit Singh Sandhu wrote:
this is the code for the small module that i wrote

The problem is in your interrupt handler:

// interrupt handler
irqreturn_t interrupt_handler (int irqn, void *dev)
{

       printk("Press a key  ");


       return IRQ_HANDLED;


}

You aren't really handling the interrupt by turning it off in the
hardware.  So the kernel sees an interrupt storm for your device and
shuts it off to save the system from going crazy.

What are you trying to do with this sample module?

Also, unless I'm mistaken, you can't/shouldn't call printk from interrupt context?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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