Acornell.2515
net.unix-wizards
utcsrgv!utzoo!decvax!ucbvax!ihnss!vax135!cornell!dean
Tue Feb  9 14:10:16 1982
More on the fast timer driver
I should probably make a few further comments about the fast timer
driver.  First, the extended signal stuff in 4BSD Berkeley UNIX is
essential to the reliable operation of the fast timer.  You should
use a sequence of the form (see sigset(3) for the details):

       sigset(your_signal, action);
       sighold(your_signal);
       ioctl( fd, FTIOCSET, &request );
       sigpause(your_signal);

where you have previously set up the timer buffer 'request' with
your_signal and successfully opened a fast timer as fd.  This
sequence guarantees that the signal won't pop through before you
get to execute the pause.

I specified in the net.sources distribution that the timer driver
should go in as device 25.  This would make it the first local device.
Obviously, if you already have other local devices, you should just
add it on to the end of your previous list.  The device number is not
critical.
                       Dean Krafft (decvax!cornell!dean)

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.