home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25786 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.1 KB

  1. Path: sparky!uunet!enterpoop.mit.edu!senator-bedfellow.mit.edu!senator-bedfellow.mit.edu!not-for-mail
  2. From: tytso@athena.mit.edu (Theodore Ts'o)
  3. Newsgroups: comp.os.linux
  4. Subject: Announcement of new patches to the serial patches!
  5. Date: 28 Jan 1993 17:00:34 -0500
  6. Organization: The Internet
  7. Lines: 65
  8. Sender: daemon@athena.mit.edu
  9. Distribution: world
  10. Message-ID: <1k9l22INN5qk@senator-bedfellow.MIT.EDU>
  11. Reply-To: tytso@athena.mit.edu (Theodore Ts'o)
  12. NNTP-Posting-Host: senator-bedfellow.mit.edu
  13.  
  14. A set of new patches to the serial driver (versus 0.99pl4) can be found
  15. on tsx-11, in /pub/linux/ALPHA/serial; here's the README file from that
  16. directory:
  17.  
  18. The file serpatches in this directory contain patches against Linux
  19. 0.99pl4 to significantly improve the serial driver.
  20.  
  21. New features summary:
  22.  
  23.     * Fully supports use of the bottom half "software interrupt"
  24.         (no new functionality add, but increases the
  25.         efficiency of the code.)
  26.  
  27.     * Improved the AUTO_IRQ code; it should hopefully be more
  28.         resistant to false IRQ assignments (espcially from the
  29.         printer IRQ, IRQ 7); I'd also be interested to know if 
  30.         it has a better chance of detecting internal modem
  31.         cards with Rockwell Chipsets.
  32.  
  33.     * The /dev/ttys?? devices are now completely POSIX complaint,
  34.         so that    if carrier detect is missing, an open of the device
  35.         will block until carrier detect goes high.  The O_NONBLOCK
  36.         flag to the open() system call will cause this blocking
  37.         behavior to be skipped.
  38.  
  39.     * A new set of devices, which I will call /dev/cua?? (following
  40.         the SunOS convention) are now supported.  They have the
  41.         same minor number as their /dev/ttys?? counterparts, but
  42.         their major number is 5, instead of 4.
  43.  
  44.         These devices never block waiting for carrier detect;
  45.         and they also have the property that once open, any
  46.         attempt to open the corresponding /dev/ttys?? line
  47.         will block until the use of the /dev/cua?? device is
  48.         finished.
  49.  
  50.         If the corresponding /dev/ttys?? line is in use when
  51.         the user attempts to open the /dev/cua?? line, the
  52.         error EBUSY will be returned.
  53.  
  54.         This allows a getty to open and block waiting for
  55.         carrier detect on the /dev/ttys?? line, while
  56.         simultaneously allowing users to use that same line to
  57.         dialout by accessing it via the /dev/cua?? device.
  58.  
  59. Note that while the Kernel support for the last two features are there,
  60. the application support is not necessarily present.  For example, the
  61. getty distributed with SLS uses the O_NONBLOCK flag when it opens its
  62. serial line.  This means that it will never block waiting for the
  63. carrier detect, and so it unnecessarily ties up the modem.  
  64.  
  65. Similarily, although the kermit program distributed with SLS claims to
  66. be compiled with the POSIX option, it does not seem to work opening the
  67. /dev/ttys??  line, even though it is supposed to.  Of course, it works
  68. fine using the /dev/cua?? devices, so it doesn't matter quite so much.
  69. I would like to talk to the person who ported the kermit on the SLS
  70. distribution, to see if he modified it to make it work on Linux, or
  71. whether he used a straight POSIX configuration.
  72.  
  73. If there are any bugs or comments, please send them to me
  74. (tytso@mit.edu).  Thanks!
  75.  
  76.                     - Ted, 1/28/93
  77.  
  78.  
  79.