mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-serial@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Donald Buczek <buczek@molgen.mpg.de>
Subject: Device to write to all (serial) consoles
Date: Fri, 2 Aug 2019 15:23:08 +0200	[thread overview]
Message-ID: <32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Dear Linux folks,


On a lot of devices, like servers, you have more than one serial console,
and you do not always know, how they are numbered. Therefore, we start a
console on ttyS0 and ttyS1.

In user space, we also would like to write to both consoles to not worry
about the numbering. Writing to `/dev/console` only write to the active
console.

    $ more /proc/consoles # I think
    tty0                 -WU (EC p  )    4:1
    ttyS0                -W- (E  p a)    4:65
    ttyS1                -W- (E  p a)    4:65

Does a device exist, or can a device be configured so you can write to
all (serial) consoles from user space?


Kind regards,

Paul


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

             reply	other threads:[~2019-08-02 13:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-02 13:23 Paul Menzel [this message]
2019-08-02 16:02 ` Greg Kroah-Hartman
2019-08-02 19:59   ` Paul Menzel
2019-08-03  6:46     ` Greg Kroah-Hartman
2019-08-03 13:23     ` Adam Borowski
2019-08-03 13:55       ` Greg Kroah-Hartman
2019-08-03 15:15         ` Adam Borowski
2019-08-08 14:52 ` Enrico Weigelt, metux IT consult

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=32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=buczek@molgen.mpg.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@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

all inboxes | Powered by JetHome®