From: Andrew Morton <akpm@osdl.org>
To: "Jon Smirl" <jonsmirl@gmail.com>
Cc: linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk
Subject: Re: [PATCH] Clean up old names in tty code to current names
Date: Sun, 9 Jul 2006 21:54:07 -0700 [thread overview]
Message-ID: <20060709215407.e6845228.akpm@osdl.org> (raw)
In-Reply-To: <9e4733910607092111i4c41c610u8b9df5b917cca02c@mail.gmail.com>
On Mon, 10 Jul 2006 00:11:11 -0400
"Jon Smirl" <jonsmirl@gmail.com> wrote:
> Fix various places in the tty code to make it match the current naming system.
>
eh?
>
> diff --git a/drivers/char/pty.c b/drivers/char/pty.c
> index 34dd4c3..af43f37 100644
> --- a/drivers/char/pty.c
> +++ b/drivers/char/pty.c
> @@ -279,7 +279,7 @@ static void __init legacy_pty_init(void)
>
> pty_slave_driver->owner = THIS_MODULE;
> pty_slave_driver->driver_name = "pty_slave";
> - pty_slave_driver->name = "ttyp";
> + pty_slave_driver->name = "pts";
> pty_slave_driver->major = PTY_SLAVE_MAJOR;
> pty_slave_driver->minor_start = 0;
> pty_slave_driver->type = TTY_DRIVER_TYPE_PTY;
> diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> index bfdb902..4a83e94 100644
> --- a/drivers/char/tty_io.c
> +++ b/drivers/char/tty_io.c
> @@ -3245,7 +3245,7 @@ #endif
> #ifdef CONFIG_VT
> cdev_init(&vc0_cdev, &console_fops);
> if (cdev_add(&vc0_cdev, MKDEV(TTY_MAJOR, 0), 1) ||
> - register_chrdev_region(MKDEV(TTY_MAJOR, 0), 1, "/dev/vc/0") < 0)
> + register_chrdev_region(MKDEV(TTY_MAJOR, 0), 1, "/dev/tty0") < 0)
> panic("Couldn't register /dev/tty0 driver\n");
> class_device_create(tty_class, NULL, MKDEV(TTY_MAJOR, 0), NULL, "tty0");
>
> diff --git a/drivers/char/vt.c b/drivers/char/vt.c
> index da7e66a..a627e8b 100644
> --- a/drivers/char/vt.c
> +++ b/drivers/char/vt.c
> @@ -2662,6 +2662,7 @@ int __init vty_init(void)
> if (!console_driver)
> panic("Couldn't allocate console driver\n");
> console_driver->owner = THIS_MODULE;
> + console_driver->driver_name = "vtconsole";
> console_driver->name = "tty";
> console_driver->name_base = 1;
> console_driver->major = TTY_MAJOR;
> diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c
> index 15c4455..042aefe 100644
> --- a/fs/proc/proc_tty.c
> +++ b/fs/proc/proc_tty.c
> @@ -48,7 +48,7 @@ static void show_tty_range(struct seq_fi
> seq_printf(m, ":vtmaster");
> break;
> case TTY_DRIVER_TYPE_CONSOLE:
> - seq_printf(m, "console");
> + seq_printf(m, "vt:console");
This seems to be changing a whole pile of userspace-visible stuff.
Tell us more. Much more.
next prev parent reply other threads:[~2006-07-10 4:54 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 4:11 Jon Smirl
2006-07-10 4:54 ` Andrew Morton [this message]
2006-07-10 7:14 ` H. Peter Anvin
2006-07-10 9:44 ` Alan Cox
2006-07-10 12:41 ` Jon Smirl
2006-07-10 13:10 ` Alan Cox
2006-07-10 13:03 ` Jon Smirl
2006-07-10 13:12 ` CaT
2006-07-10 13:18 ` Jon Smirl
2006-07-10 13:43 ` Alan Cox
2006-07-10 14:07 ` Jon Smirl
2006-07-10 14:17 ` Jan Engelhardt
2006-07-10 14:37 ` Alan Cox
2006-07-10 14:42 ` Antonino A. Daplas
2006-07-10 14:57 ` Jon Smirl
2006-07-10 15:19 ` Alan Cox
2006-07-10 15:10 ` Valdis.Kletnieks
2006-07-10 15:21 ` Russell King
2006-07-10 15:38 ` Valdis.Kletnieks
2006-07-10 15:35 ` Antonino A. Daplas
2006-07-10 15:54 ` Jon Smirl
2006-07-10 16:04 ` H. Peter Anvin
2006-07-10 22:14 ` Jan Engelhardt
2006-07-10 18:13 ` Alistair John Strachan
2006-07-11 21:54 ` Greg KH
2006-07-11 21:52 ` Greg KH
2006-07-11 2:18 Albert Cahalan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060709215407.e6845228.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jonsmirl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome