Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1665351
| From | Alan Cox <gnomes@lxorguk.ukuu.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations |
| Date | 2017-06-14 03:20 +0200 |
| Message-ID | <tS58u-6WS-15@gated-at.bofh.it> (permalink) |
| References | <tRNXX-4BW-5@gated-at.bofh.it> <tRNXY-4BW-23@gated-at.bofh.it> |
| Organization | Intel Corporation |
On Tue, 13 Jun 2017 09:52:07 +0300 Tal Shorer <tal.shorer@gmail.com> wrote: > If a tty driver wants to notify the user of some exceptional event, > such as a usb cdc acm device set_line_coding event, it needs a way to > modify the mask returned by poll() and possible also add wait queues. > In order to do that, we allow the driver to supply a poll() callback > of its own, which will be called in n_tty_poll(). > > Signed-off-by: Tal Shorer <tal.shorer@gmail.com> You might be in any line discipline so you need to support that for each ldisc that supports poll(). Also what do I do when I get an exception event - what does it mean, how do I understand that, are you proposing a standardized meaning ? Have you checked whether that conflicts with SuS v3 or POSIX ? What will it do with existing code. At the very least it probably has to be something you turn on, and you might then want to model it on the pty/tty interface logic and extend TIOCPKT a shade. Alan
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Tal Shorer <tal.shorer@gmail.com> - 2017-06-13 09:00 +0200
Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Alan Cox <gnomes@lxorguk.ukuu.org.uk> - 2017-06-14 03:20 +0200
Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Tal Shorer <tal.shorer@gmail.com> - 2017-06-14 10:30 +0200
Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Tal Shorer <tal.shorer@gmail.com> - 2017-06-14 10:30 +0200
Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Alan Cox <gnomes@lxorguk.ukuu.org.uk> - 2017-06-14 15:40 +0200
Re: [PATCH v2 1/8] tty: add a poll() callback in struct tty_operations Tal Shorer <tal.shorer@gmail.com> - 2017-06-15 16:50 +0200
csiph-web