home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20836 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.7 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!liberator.et.tudelft.nl!wolff
  3. From: wolff@liberator.et.tudelft.nl (Rogier Wolff)
  4. Subject: Re: Serial IRQ polling
  5. Message-ID: <1992Dec17.135734.19036@donau.et.tudelft.nl>
  6. Sender: news@donau.et.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: liberator.et.tudelft.nl
  8. Organization: Delft University of Technology, Dept. of Electrical Engineering
  9. References: <1gi6saINNaq4@life.ai.mit.edu> <ADAMS.92Dec16013812@PDV2.pdv2.fmr.maschinenbau.th-darmstadt.de>
  10. Date: Thu, 17 Dec 1992 13:57:34 GMT
  11. Lines: 27
  12.  
  13. adams@pdv2.fmr.maschinenbau.th-darmstadt.de (Adams) writes:
  14.  
  15. >In article <1gi6saINNaq4@life.ai.mit.edu> jimc@hal.gnu.ai.mit.edu (James Carpenter) writes:
  16.  
  17. >>   Does Linux poll serial ports (i.e. can I use COM2 and COM4 at the same time
  18. >>   if they are both on IRQ 3). I have looked at the serial code but it just
  19. >>   gets me dizzy. And I do not see any mention of polling (which is what I 
  20. >>   always thought was the correct phrase). But is Linux suppose to do this?
  21. >>   And if so PLEASE tell me that there is a trick to enabling it because
  22. >>   nothing I've tried works.
  23.  
  24. >There is no reasonable way to poll a device in a multi user or
  25. >realtime environment. Attaching to a timer
  26. >will lead to a desastrous performance loss, and hooking the
  27. >CPU will disable multitasking.
  28.  
  29. Linux doesn't poll, however if both COM2 and COM4 are in use, it will check
  30. both devices before returing from the interrupt. Thus: No Linux doesn't
  31. use polling, but it does allow both COM ports to be used. The only trick
  32. is to get a reasonably new kernel.
  33.  
  34.  
  35.                     Roger.
  36.  
  37. -- 
  38. ****   a 486 in V86 mode is like a VW buggy with a 6 litre V12 motor.  ****
  39. EMail:  wolff@duteca.et.tudelft.nl   ** Tel  +31-15-783644 or +31-15-142371
  40.