linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cheng Chao <cs.os.kernel@gmail.com>
To: gregkh@linuxfoundation.org, jslaby@suse.com, nico@fluxnic.net,
	textshell@uchuujin.de, sam@ravnborg.org, daniel.vetter@ffwll.ch,
	mpatocka@redhat.com, ghalat@redhat.com
Cc: linux-kernel@vger.kernel.org, Cheng Chao <cs.os.kernel@gmail.com>
Subject: [PATCH] tty: fill console_driver->driver_name
Date: Thu,  7 Nov 2019 09:25:48 +0800	[thread overview]
Message-ID: <1573089948-5944-1-git-send-email-cs.os.kernel@gmail.com> (raw)

cat /proc/tty/drivers
...
unknown              /dev/tty        4 1-63 console

----------------------------------
after this patch:

cat /proc/tty/drivers
...
console              /dev/tty        4 1-63 console

Signed-off-by: Cheng Chao <cs.os.kernel@gmail.com>
---
 drivers/tty/vt/vt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 34aa39d..981eee9 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -3440,6 +3440,7 @@ int __init vty_init(const struct file_operations *console_fops)
 	if (!console_driver)
 		panic("Couldn't allocate console driver\n");
 
+	console_driver->driver_name = "console";
 	console_driver->name = "tty";
 	console_driver->name_base = 1;
 	console_driver->major = TTY_MAJOR;
-- 
2.4.11


             reply	other threads:[~2019-11-07  1:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-07  1:25 Cheng Chao [this message]
2019-11-11 14:27 ` [PATCH] tty: fill console_driver->driver_name Greg KH
2019-11-12  1:00   ` Cheng Chao

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=1573089948-5944-1-git-send-email-cs.os.kernel@gmail.com \
    --to=cs.os.kernel@gmail.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=ghalat@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpatocka@redhat.com \
    --cc=nico@fluxnic.net \
    --cc=sam@ravnborg.org \
    --cc=textshell@uchuujin.de \
    /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;
as well as URLs for NNTP newsgroup(s).