From: Jeff Denham <jdenham@brighttiger.com>
Subject: Re: How do I map 16 interrupts to SIGUSR1, SIGUSR2, ...
Date: 1998/01/06 [thread overview]
Message-ID: <34B20C32.C44C1CC2@brighttiger.com> (raw)
In-Reply-To: j7sor2q2mi.fsf@dynip33.efn.org
Rick Bronson wrote:
> Hi,
>
> I have a PCI board with 16 interrupts that I'd like to map to 16
> signals (like SIGUSR1, SIGUSR2, ... User-defined signals) but there
> aren't 16 of them. Are there any other methods to accomplish this?
>
> I'm using the latest Digital UNIX.
Ah, but there are 16 more signals for you to use, as luck would have it --the 16
realtime signals. They don't show up in <signal.h> as traditional
signal, i.e., SIGXXX. Rather, because of POSIX, they're runtime-evaluated
using the expressions SIGRTMIN and SIGRTMAX. The Guide to Realtime
Programming in the doc set beginning with V4.0 has some examples of
how to use these signals. Also, O'Reilly's POSIX.4 book by Bill Gallmeister
has some more examples and explanation.
[Just FYI, on V4.0, SIGRTMIN is 33 and SIGRTMAX is 48. This could change
in a later release, which is what all the dynamic stuff is about, I guess. Of
course,
it's very, very unlikely that the definitions will change, but that's no excuse
for
hardcoding the definitions in your app ;^). (Well, let's put it this way -- I
left DEC in November, so it won't be *me* changing the definitions any time
soon!) ]
Jeff
________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
prev parent reply other threads:[~1998-01-06 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-05 5:00 How do I map 16 interrupts to SIGUSR1, SIGUSR2, Rick Bronson
1998-01-06 5:00 ` Jeff Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox