From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,46eb807eedceaf12 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,46eb807eedceaf12 X-Google-Attributes: gidf678f,public From: Jeff Denham Subject: Re: How do I map 16 interrupts to SIGUSR1, SIGUSR2, ... Date: 1998/01/06 Message-ID: <34B20C32.C44C1CC2@brighttiger.com>#1/1 X-Deja-AN: 313325201 Content-Transfer-Encoding: 8bit References: Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies Mime-Version: 1.0 Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 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 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