LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-22-2015, 09:15 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Doubt in interrupt number, how to decide device interrupted on sharing interrupt pin?


Hi,

In the following function

Code:
int request_irq( unsigned int irq,irq_handler_t handler,unsigned long irq_flags,const char * devname,void *dev_id);
how to correlate the 1st argument irq with the hardware interrupt pins. ie ) how to decide the interrupt number we have to use for a specific interrupt pin?

And while sharing the interrupt pins how to decide which device interrupted and process the correct interrupt handler as the Programmable Interrupt Controller status register value will be same for all the devices interrupted as it shares the same pin? Can I get any hardware specific examples?

Please help!
 
Old 06-22-2015, 09:45 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,073

Rep: Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245Reputation: 1245
"Linux Device Drivers", O'Reilley, has an entire chapter on writing interrupt handlers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Doubt in interrupt sharing ayyasprings Linux - Embedded & Single-board computer 1 06-08-2015 11:50 AM
control is not going to interrupt handler when interrupt remyasj LinuxQuestions.org Member Intro 1 11-12-2009 01:56 AM
How to find irq number associated with PCI interrupt P.S.R.K.S.PRASAD Linux - Kernel 3 11-09-2006 12:33 AM
control is not going to interrupt handler when interrupt comes in serial driver sateeshalla Linux - Kernel 1 05-04-2006 10:43 AM
Interrupt sharing by default? halfpower *BSD 0 08-11-2005 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:26 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