DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Notes and examples for multithreaded TTY drivers

Modifying the ioctl(D2oddi) routine

The only changes necessary in the ioctl(D2oddi) routine are the implementation of locking:

   s = tc_tlock(tp);                    /* replacing oldspl = spl7();  */
   /*
   *
   *  Condition that is interrupt sensitive
   *  ie. conditions based on carrier change
   *
   */
   tc_tunlock(tp,s);   /* replacing splx(oldspl); */

© 2005 The SCO Group, Inc. All rights reserved.