public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Hannes Reinecke <hare@suse.de>
Cc: sytemd-devel@lists.freedesktop.org, dh.herrmann@gmail.com,
	linux-kernel@vger.kernel.org,
	Lennart Poettering <lennart@poettering.net>,
	Kay Sievers <kay@vrfy.org>, Jiri Slaby <jslaby@suse.cz>,
	Werner Fink <werner@suse.de>
Subject: Re: [PATCHv2] tty: Set correct tty name in 'active' sysfs attribute
Date: Thu, 6 Feb 2014 16:29:47 +0100	[thread overview]
Message-ID: <20140206152947.GA19335@kroah.com> (raw)
In-Reply-To: <1391696863-62767-1-git-send-email-hare@suse.de>

On Thu, Feb 06, 2014 at 03:27:43PM +0100, Hannes Reinecke wrote:
> The 'active' sysfs attribute should refer to the currently
> active tty devices the console is running on, not the currently
> active console.

That's not what Documentation/ABI/sysfs-tty says:
                 Shows the list of currently configured                         
                 console devices, like 'tty1 ttyS0'.                            
                 The last entry in the file is the active                       
                 device connected to /dev/console.                              
                 The file supports poll() to detect virtual                     
                 console switches.                         

> The console structure doesn't refer to any device in sysfs,
> only the tty the console is running on has.

That sentance doesn't make sense.

> So we need to print out the tty names in 'active', not
> the console names.

But that doesn't match the documentation.

What exactly are you trying to "fix" here?  What is the problem that the
current file has that is broken?  And as you are changing what this file
means, what will break if the information in the file changes?


thanks,

greg k-h

  reply	other threads:[~2014-02-06 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06 14:27 [PATCHv2] tty: Set correct tty name in 'active' sysfs attribute Hannes Reinecke
2014-02-06 15:29 ` Greg Kroah-Hartman [this message]
2014-02-06 15:44   ` Hannes Reinecke
2014-02-06 16:29     ` Greg Kroah-Hartman
2014-02-07  9:02       ` Kay Sievers
2014-02-10 11:21         ` One Thousand Gnomes

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=20140206152947.GA19335@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=dh.herrmann@gmail.com \
    --cc=hare@suse.de \
    --cc=jslaby@suse.cz \
    --cc=kay@vrfy.org \
    --cc=lennart@poettering.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sytemd-devel@lists.freedesktop.org \
    --cc=werner@suse.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