Re: Keyboard interrupt - request_irq()

2008-02-22 Thread Jiri Kosina
On Thu, 21 Feb 2008, Pioz wrote: > I have a problem. > I want handle the keyboard interrupt and for this purpose I have write > this module (I have kernel 2.6.23): [ ... ] > res = request_irq (1, irq_myhandler, IRQF_SHARED, "bao", dev_id); [ ... ] > The return value of request_irq() func

Re: Keyboard interrupt - request_irq()

2008-02-21 Thread Robert Hancock
Pioz wrote: Hi all, I have a problem. I want handle the keyboard interrupt and for this purpose I have write this module (I have kernel 2.6.23): #include #include #include [...] irqreturn_t irq_myhandler (int irqn, void *dev) { printk (KERN_INFO "Key pressed...\n"); retur

Keyboard interrupt - request_irq()

2008-02-21 Thread Pioz
Hi all, I have a problem. I want handle the keyboard interrupt and for this purpose I have write this module (I have kernel 2.6.23): #include #include #include [...] irqreturn_t irq_myhandler (int irqn, void *dev) { printk (KERN_INFO "Key pressed...\n"); return IRQ_HANDLED;