Re: [PATCH] Remove pty_ops_bsd and pty_bsd_ioctl() as they're not used

From: David Howells
Date: Tue Sep 29 2009 - 11:56:39 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

>
> pty_slave_driver->owner = THIS_MODULE;
> pty_slave_driver->driver_name = "pty_slave";
> @@ -399,7 +387,7 @@ static void __init legacy_pty_init(void)
> pty_slave_driver->flags = TTY_DRIVER_RESET_TERMIOS |
> TTY_DRIVER_REAL_RAW;
> pty_slave_driver->other = pty_driver;
> - tty_set_operations(pty_slave_driver, &pty_ops);
> + tty_set_operations(pty_slave_driver, &pty_ops_bsd);
>
> if (tty_register_driver(pty_driver))
> panic("Couldn't register pty driver");
>

Is it right to use pty_ops_bsd in _both_ places? Looking at the code in
linux-2.6.0, the BSD ioctl only applies to the master and doesn't apply to the
slave.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/