* How do I map 16 interrupts to SIGUSR1, SIGUSR2, ...
@ 1998-01-05 5:00 Rick Bronson
1998-01-06 5:00 ` Jeff Denham
0 siblings, 1 reply; 2+ messages in thread
From: Rick Bronson @ 1998-01-05 5:00 UTC (permalink / raw)
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.
Thanks much.
Rick
--
_
| |
/ /__
.------------------------------------------------------------._______/ (___)
| Rick Bronson rick@efn.org Tel 541-465-9008 _o_ | (___)
| Amazonia Computing http://www.efn.org/~rick \|/ |_______ (___)
| 745 Foothill Drive "Onde esta dinheiro?" `---' | \_(___)
| Eugene, OR 97405-4651 -- Gal Costa Disk | Golf|
`------------------------------------------------------------'
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do I map 16 interrupts to SIGUSR1, SIGUSR2, ...
1998-01-05 5:00 How do I map 16 interrupts to SIGUSR1, SIGUSR2, Rick Bronson
@ 1998-01-06 5:00 ` Jeff Denham
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Denham @ 1998-01-06 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-01-06 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-05 5:00 How do I map 16 interrupts to SIGUSR1, SIGUSR2, Rick Bronson
1998-01-06 5:00 ` Jeff Denham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox