> > > 2. How can I find out which interrupt triggered the handler function ?
> > 
> > Very good question ! I was searching once and I was not able to find an
> > answer. 
> 
> Define a capture function for each irq 
> 
> catch_irq_10( ...){ common_irq(10); ...}

Why this would be necessary?
Three lines below you wrote, that isr routine CAN identify
the irq number. (And so use I it for a year.)

Regards

Gabor

> 
> Or, in V3 RTLinux us the sigaction call to install a handler and the
> first argument is the irq#, or, in  earlier versions of RTLinux 
> use rtl_request_irq and the first argument is the irq#, or you can 
> can extract the signal number from the pt_regs argument -- in x86 it is in 
> the eax field. 

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to