mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Craig-Wood <ncw1@axis.demon.co.uk>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Kurt Häusler" <Kurt@fub-group.de>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: Accessing serial port from kernel module
Date: Thu, 24 Jul 2003 09:26:35 +0100	[thread overview]
Message-ID: <20030724082635.GA18443@axis.demon.co.uk> (raw)
In-Reply-To: <1058970342.5520.74.camel@dhcp22.swansea.linux.org.uk>

On Wed, Jul 23, 2003 at 03:25:43PM +0100, Alan Cox wrote:
> The user space only approach is to use pty/tty pairs as things like
> xterm do. This gives you a "terminal/serial" device the other end of
> which is your user space program which can do the conversions it wants
> then talk to a real serial port

In this latter approach is there any way for the user space program to
catch the termios ioctls (eg to set baud rate etc) that the
application does on the tty end of the pty/tty pair?

(I believe the answer is no!  I got half way through writing a pty/tty
replacement driver which passed the relevant ioctls (decoded into
platform independent "change baud rate to 9600" etc) on the tty
in-band to the pty.  I used in-band so this data stream could then be
piped via ssh etc)

-- 
Nick Craig-Wood
ncw1@axis.demon.co.uk

      reply	other threads:[~2003-07-24  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23 14:15 Kurt Häusler
2003-07-23 14:25 ` Alan Cox
2003-07-24  8:26   ` Nick Craig-Wood [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=20030724082635.GA18443@axis.demon.co.uk \
    --to=ncw1@axis.demon.co.uk \
    --cc=Kurt@fub-group.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@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®