On Thu, 2007-03-29 at 18:36 +0200, Erik Mouw wrote: > -----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. ok. > > > 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. Yeep, exactly thts what i was looking for. It should get an ack for the interrupt. thanks for clearing this for me. cheers, sandeep -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ