Re: how the interrupt handler(ISR) knows the source of interrupt ?

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Mar 29, 2007 at 08:09:34PM +0530, Sandeep Sanjay Patil wrote:
> since the interrupts are being discussed, ia had a question bugging me
> since a long time. Sometimes we have two types of interrupts...
> 
> 1. Level IRQ
> 2. Edge trigerred IRQ
> 
> difference? AFAIK, level irq's will appear when the clock is LEVEL (now
> is it the cpu clock??) And the edge triggered irq's will appear on
> falling or rising edge as configured in the interrupting device. My
> question was, is it the cpu clock, or the interrupting device clock
> being reffered here.

It's the clock of whatever is sampling that particular IRQ line,
usually the PIC or APIC.

> so, if i have an edge triggered interrupt and my ISR looks like..
> 
> irqreturn_t my_device_isr(int irqno, void *dev_id)
> {
> 	return IRQ_HANDLED;
> }
> 
> will this do???

No, you must acknowledge the IRQ to the device, or otherwise it will
interrupt you again.


Erik

- -- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGC+r0/PlVHJtIto0RAvCZAJ44ONBycvSjsVk56qba6eHPi/AwYACeNC5a
SgqShmuu99pVkzK2Yiycr7o=
=g12w
-----END PGP SIGNATURE-----

--
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