On Thu, Sep 14, 2000 at 05:57:59PM +0200, Tomasz Motylewski wrote:
> On Thu, 14 Sep 2000 [EMAIL PROTECTED] wrote:
> 
> > > service several interrupts. Quite common case when using some kind of
> > > wrappers, etc. Having "device id" is a requirement. It was not present in
> > > Linux initially, but soon people understood its usefulness.
> > 
> >        
> > low_level_handler_installed_by_request_irq:
> >           general_handler(devname);
> >           return;
> > 
> > Is that a problem?
> 
> Yes. In low_level_handler_installed_by_request_irq I have no way to get
> devname. We are talking about fully dynamic situations. Like I have two
> identical cards, I want to use the same driver. At compile time I do not know
> if I will install 1 or 5 interrupt handlers and for which devices. I also do
> not know the names at compile time.

Can you explain the example a little more? Both cards can be installed in the
same box at the same time? Or not? 

In any the rtl_request_irg irq handler is called with the irq# as an argument so 
why doesn't that get you what you need?

And what about sigaction(int signum, const struct sigaction *act, struct sigaction 
*oldact)?

-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com

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