[RFC][PATCH 1/3] Move parts of init_dev() into new functions
alan at lxorguk.ukuu.org.uk
Tue Aug 26 02:44:45 PDT 2008
> > Only for a re-open - which is very different to an initial open,
> > and /dev/tty is deep magic in this situation.
> I guess I fail to understand something here, perhaps because I haven't
> looked at the code in very much details for several years. How is there
> not a 1:1 mapping between tty structures and instances, even in the
> presence of /dev/tty? (/dev/tty, of course, points to a real tty.)
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.
> *Nod.* It may mean that for consoles we have to provide transient
> inodes in rootfs.
consoles for printk need to exist extremely early if we are going to be
able to kick most of the console special case code into the bitbucket.
More information about the Containers