From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: William Hubbs <w.d.hubbs@gmail.com>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
gregkh@suse.de, Chris Brannon <cmbrannon79@gmail.com>,
Kirk Reiser <kirk@reisers.ca>
Subject: Re: request for assistance: accessing ttys from kernel space
Date: Tue, 26 Jan 2010 13:39:58 +0000 [thread overview]
Message-ID: <20100126133958.49e660a5@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20100126024049.GQ21492@const.famille.thibault.fr>
> Is there another way to set up a line discipline from the kernel itself
> without the need from userland intervention, even before any / is
> mounted?
There is no fundamental reason you can't do that once the tty object
itself exists. Currently there is no path for doing it in the kernel.
> Maybe the early serial console support layer could be extended a bit so
> speakup can use it first during the boot? For now it's quite tied to
> just printing the printk logs. drivers/accessibility/braille_console.c
> does manage do make something else, but it happens that the
> serial_core.c's uart_console_write puts additional \rs before \ns, which
> can be a problem.
>
> Also, for proper speech flow, speakup would need to be able to read
> characters from the device.
Some debugger folk want that too.
I've been trying to get to the point where each tty consists of a
tty_struct which is the instance of an opened tty device, and a tty_port
which is a common struct instance for each physical port. That then has
some operations attached to it.
However at the moment most of the operation paths are not pushed into
tty_port, not every device yet has a tty_port and many of the paths that
need pushing into tty_port reference material that is in struct tty but
probably also needs moving.
So there is an awful lot of work to be done.
I guess the quick 'get it working' hack for the moment would be to add a
'raw' flag to the console output routines and use those (where raw=1
would mean 'don't tamper with the formatting')
Alan
next prev parent reply other threads:[~2010-01-26 13:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 2:02 request for assistance: accessing ttys from kernel space William Hubbs
2010-01-26 2:13 ` Alan Cox
2010-01-26 2:40 ` Samuel Thibault
2010-01-26 13:39 ` Alan Cox [this message]
2010-01-28 0:45 ` Samuel Thibault
2010-01-26 2:27 ` Samuel Thibault
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=20100126133958.49e660a5@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=cmbrannon79@gmail.com \
--cc=gregkh@suse.de \
--cc=kirk@reisers.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=samuel.thibault@ens-lyon.org \
--cc=w.d.hubbs@gmail.com \
/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