Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1679016
| From | Alan Cox <gnomes@lxorguk.ukuu.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Directly accessing serial ports from drivers w/o TTYs ? |
| Date | 2017-06-30 19:30 +0200 |
| Message-ID | <tY7TX-8jY-9@gated-at.bofh.it> (permalink) |
| References | <tWovT-2uQ-11@gated-at.bofh.it> <tWDEC-3EY-19@gated-at.bofh.it> <tXG7o-71O-27@gated-at.bofh.it> |
| Organization | Intel Corporation |
> I was thinking about something that looks like serdev from consumer > side, but instead directly works on struct uart_port, w/o actually > allocating a tty (and also the funny things like signals, etc). uart_port is only a subset of tty devices and also relies upon tty for some of the locking and other behaviour. > > Why do you need to do otherwise ? > > Maybe it could offer better performance ? Unless you have very tight latency requirements I would be surprised if you could do that much better even on a slow machine. If you don't need tty semantics then you can probably beat it hands down by writing your own custom driver for the hardware that doesn't pretend to be a tty in the first place. The cost in the tty stack is pretty much all the Unix tty API and POSIX guarantees. Alan
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Directly accessing serial ports from drivers w/o TTYs ? "Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net> - 2017-06-26 00:50 +0200
Re: Directly accessing serial ports from drivers w/o TTYs ? Alan Cox <gnomes@lxorguk.ukuu.org.uk> - 2017-06-26 17:00 +0200
Re: Directly accessing serial ports from drivers w/o TTYs ? "Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net> - 2017-06-29 13:50 +0200
Re: Directly accessing serial ports from drivers w/o TTYs ? Alan Cox <gnomes@lxorguk.ukuu.org.uk> - 2017-06-30 19:30 +0200
csiph-web