All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: how to control the TTY output queue in real time?
@ 2012-08-10 19:17 Stas Sergeev
  2012-08-10 19:33 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Stas Sergeev @ 2012-08-10 19:17 UTC (permalink / raw)
  To: Linux kernel; +Cc: Alan Cox, linux-serial

Hello.

I am writing an app that needs to control the
serial xmit in real-time. What I need is a notification
that the TTY output queue fillup (returned by TIOCOUTQ
ioctl) have dropped below the specified value.
I haven't found anything that can help implementing
this. If I can't get an async notification, the sync
notification will do too, like, for instance, the tcdrain()
call, but with the argument to specify the needed fillup,
below which the function will return.
If there is nothing like this, then even the notification
on every transmitted char will do.
But I've found nothing of the above. :(

Any suggestions how the real-time control can be
implemented?

(please CC me the replies)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-10 20:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 19:17 Q: how to control the TTY output queue in real time? Stas Sergeev
2012-08-10 19:33 ` Alan Cox
2012-08-10 19:54   ` Stas Sergeev
2012-08-10 20:15     ` Alan Cox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.