struct tty_driver

Date: Tue Feb 11 2003 - 09:44:07 EST

Ted, I wondered:

Looking at 2.5.60 I see

struct tty_struct {
        int magic;
        struct tty_driver driver;

and it looks like this struct tty_driver is never modified.
Since it is rather large, why not replace it by
        struct tty_driver *driver;

As it is now, the initialization in init_dev() does
        tty->driver = *driver;
just duplicating constant data.

Is this a historical relict, or does this duplication have a function?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:34 EST