netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Cc: Jarek Poplawski <jarkao2@gmail.com>, netdev@vger.kernel.org
Subject: Re: netconsole as normal console for userspace messages?
Date: Tue, 01 Sep 2009 12:34:34 -0500	[thread overview]
Message-ID: <1251826474.3960.597.camel@calx> (raw)
In-Reply-To: <200909011800.40243.a.miskiewicz@gmail.com>

On Tue, 2009-09-01 at 18:00 +0200, Arkadiusz Miskiewicz wrote:
> On Tuesday 01 of September 2009, Matt Mackall wrote:
> > On Tue, 2009-09-01 at 10:16 +0000, Jarek Poplawski wrote:
> > > On 30-08-2009 02:12, Arkadiusz Miskiewicz wrote:
> > > > Hi,
> > >
> > > Hi,
> > >
> > > > Can netconsole be somehow used to see userspace messages, too?
> > > > Something similar to console=ttySX... just =netconsole.
> > >
> > > AFAIK it can't, but AFAICR some time ago the netconsole maintainer
> > > gave some hope to some Debian guy with a similar question.
> >
> > It is, as they say, just a simple matter of programming to get a full
> > bidirectional console out of it. As cool as that would be, I just
> > haven't had time for it.
> 
> Unidirectional console would be enough for me but it seems that netconsole 
> isn't capable even for that (userspace messages).

Yes. What's needed is to add a low-level tty interface and register it
with the tty core. Most of that is attaching the tty_ops->write() method
to netpoll's send_msg in the obvious way. Just about all the other
methods are optional or trivial. 

Once you've got unidirectional working, bidirectional is approximately
one line of additional code to attach the read side: call
tty_insert_flip_string(my_tty, buf, len) in netpoll's receive function.

-- 
http://selenic.com : development and support for Mercurial and Linux



      reply	other threads:[~2009-09-01 17:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-30  0:12 netconsole as normal console for userspace messages? Arkadiusz Miskiewicz
2009-09-01 10:16 ` Jarek Poplawski
2009-09-01 15:15   ` Matt Mackall
2009-09-01 16:00     ` Arkadiusz Miskiewicz
2009-09-01 17:34       ` Matt Mackall [this message]

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=1251826474.3960.597.camel@calx \
    --to=mpm@selenic.com \
    --cc=a.miskiewicz@gmail.com \
    --cc=jarkao2@gmail.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).