* Question about tty layer
@ 2011-01-13 6:16 deepak.kodihalli
2011-01-13 9:26 ` Jiri Slaby
0 siblings, 1 reply; 2+ messages in thread
From: deepak.kodihalli @ 2011-01-13 6:16 UTC (permalink / raw)
To: linux-kernel
Hi,
Does the tty layer buffer requests from the host if the tty has not been opened?
Supposing I'm working with an interface on /dev/ttyGS1. If the user space has not opened this yet, but USB is connected, would this allow the host to send data packets to this interface? If yes, and if user space opens ttyGS1 at a later stage and say adds a GIO watch on it for POLLIN, would user space receive that pollin?
Thanks,
Deepak
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about tty layer
2011-01-13 6:16 Question about tty layer deepak.kodihalli
@ 2011-01-13 9:26 ` Jiri Slaby
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2011-01-13 9:26 UTC (permalink / raw)
To: deepak.kodihalli; +Cc: linux-kernel
On 01/13/2011 07:16 AM, deepak.kodihalli@nokia.com wrote:
> Does the tty layer buffer requests from the host if the tty has not been opened?
>
> Supposing I'm working with an interface on /dev/ttyGS1. If the user space has not opened this yet, but USB is connected, would this allow the host to send data packets to this interface? If yes, and if user space opens ttyGS1 at a later stage and say adds a GIO watch on it for POLLIN, would user space receive that pollin?
It depends on the driver and the device. Most of devices are off until
open is called in their driver. So no buffers are filling neither in
device, nor in the kernel.
regards,
--
js
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-13 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 6:16 Question about tty layer deepak.kodihalli
2011-01-13 9:26 ` Jiri Slaby
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.