linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: joseph.bueno@trader.com
To: Phil Thompson <Phil.Thompson@pace.co.uk>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: User Space Emulation of Devices
Date: Thu, 06 Sep 2001 14:14:06 +0200	[thread overview]
Message-ID: <3B97688E.BD639152@trader.com> (raw)
In-Reply-To: <54045BFDAD47D5118A850002A5095CC30AC57D@exchange1.cam.pace.co.uk>

Phil Thompson wrote:
> 
> Without going into the gory details, I have a requirement for a device
> driver that does very little apart from pass on the open/close/read/write
> "requests" onto a user space application to implement and pass back to the
> driver.
> 
> Does anything like this already exist?
> 
> Thanks,
> Phil
> -

Hi,

You may use pseudo-terminals (pty) to pass open/close/read/write/ioctl requests
to user space.

Your monitoring application opens master side of the pseudo terminal and
monitored application opens slave side.

Ptys are mainly used to redirect serial device communications (tty) to user
space but they can also be used to emulate other types of devices.
Check pty man pages for details.

Hope this helps
--
Joseph Bueno
NetClub/Trader.com

  reply	other threads:[~2001-09-06 12:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-06  8:25 User Space Emulation of Devices Phil Thompson
2001-09-06 12:14 ` joseph.bueno [this message]
2001-09-12 10:28 ` Pavel Machek
2001-09-12 21:45   ` Oliver Neukum
2001-09-12 22:14     ` H. Peter Anvin
2001-09-12 22:34       ` Alan Cox
2001-09-13 18:13         ` Tim Jansen
2001-09-14  4:31     ` Jeremy Elson
2001-09-13  3:53 ` Dwayne C. Litzenberger
2001-09-13  8:25 Phil Thompson
2001-09-13 18:33 ` Tim Jansen

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=3B97688E.BD639152@trader.com \
    --to=joseph.bueno@trader.com \
    --cc=Phil.Thompson@pace.co.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;
as well as URLs for NNTP newsgroup(s).