[Devel] Re: [RFC][PATCH 1/3] Move parts of init_dev() into new functions

Alan Cox alan at lxorguk.ukuu.org.uk
Tue Aug 26 09:49:21 PDT 2008


On Tue, 26 Aug 2008 09:40:20 -0700
"H. Peter Anvin" <hpa at zytor.com> wrote:

> Alan Cox wrote:
> > 
> > In the case of the initial open you don't yet know the tty pointer and
> > may be creating it. SO the tty isn't a reference because it doesn't exist.
> > 
> 
> Got it.  I was under the (apparently mistaken) notion that only pty tty 
> structures were created dynamically.

tty is dynamically created and attached to the file handle. The port side
structure is currently port specific and does last. Thats what the
tty_port stuff is intended to slowly standardise but won't help ptys as
they don't have a physical port anyway.

Alan
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list