LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-26-2006, 06:53 AM   #1
P.S.R.K.S.PRASAD
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
How to find irq number associated with PCI interrupt


Hi,
I am a beginner in developing Linux device driver.I want to install interrupt handler using request_irq() call.The problem is the first argument.It is irq number associated with PCI interrupt line.I am getting this number with pci_read_config_byte(dev,PCI_INTERRUPT_LINE,&irqno).If I am passing this irqno to request_irq() call it is not catching the interrupt.Is the above method of finding irqno correct?If not please suggest the correct method.
Thank you.

Regards,
P.S.R.K.S.PRASAD
 
Old 10-27-2006, 12:24 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
So let me get this straight, you are trying to get an irqno and then register it? I just got this out of a book, so take it as you will.
Code:
static irqreturn_t intr_handler(int irq, void *dev_id, struct pt_regs *regs)

Last edited by manwichmakesameal; 10-27-2006 at 12:29 PM.
 
Old 11-07-2006, 05:22 PM   #3
sudhaanil
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
Hi Prasad,

What is the request_irq() returning ?

Also, post the dmesg after you run your driver module.

Thanks,
Anil.
 
Old 11-08-2006, 11:33 PM   #4
P.S.R.K.S.PRASAD
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,
I don't remember the prototype of request_irq.You can find it in the book Linux Device Drivers.The soft copy is available for free.For printed edition the publisher is O'REILLY publishing company.

Bye,
P.S.R.K.S.PRASAD
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtain the real IRQ number for a PCI device Elliott-t Linux - Kernel 2 09-24-2006 09:05 PM
RHEL4+Disabling Interrupt IRQ#11 hironbose Linux - Enterprise 1 07-29-2006 10:29 AM
Any Distros won't install. Combo drive detected on bad irq, hdb: lost interrupt frztrade Fedora 2 02-04-2006 08:32 AM
IRQ probe failed (0xfffffff8)+hda lost interrupt titoutitou Linux - Software 0 01-25-2005 10:05 AM
how to set an interrupt (irq) via software cardias Programming 2 09-20-2004 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration