[Devel] [PATCH rh7] tty: vzcon -- Add container dummy console support

Vladimir Davydov vdavydov at parallels.com
Wed Jun 17 09:27:23 PDT 2015


On Wed, Jun 17, 2015 at 12:19:49PM +0300, Cyrill Gorcunov wrote:
> On Wed, Jun 17, 2015 at 12:13:48PM +0300, Vladimir Davydov wrote:
> > 
> > Could you please explain the difference between vtty and standard pty in
> > PCS6? In other words, why was vtty introduced initially? Why couldn't we
> > just use a pty instead?
> 
> The main difference is that vtty doesn't block when there is no space
> left in tty buffer, but simply trows data out. That's the reason why
> vtty has been introduced in first place I think.

May be, we could simply reuse all pty methods slightly tweaking
pty_write and pty_write_max then? IMO it would be neater and more
compact than code duplication. Is it possible?



More information about the Devel mailing list