9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dan Cross <cross@math.psu.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] port/devcons.c is not port-able
Date: Wed, 14 Jul 2004 00:31:10 -0400	[thread overview]
Message-ID: <200407140431.i6E4VAP00788@augusta.math.psu.edu> (raw)
In-Reply-To: Your message of "Tue, 13 Jul 2004 07:57:15 MDT." <Pine.LNX.4.44.0407130730580.6196-100000@maxroach.lanl.gov>

Maybe this is relevant, maybe not.  My brain's been shot (uhh, not
literally for anyone who might wonder about that statement) over the
last few months so bear with me.

I have a digital camera that uses the mass storage protocol over USB.
I looked briefly at writing a driver for it, but realized at one point
that I would have to duplicate a lot of code to speak, e.g., the SCSI
protocol over USB to talk to it.  It occured to me that one way to deal
with it might be to write a SCSI loopback device that would speak the
SCSI protocol to/from a file descriptor that was passed into it somehow
(say by mounting it on one).  Then a user-level program could provide a
transport over say USB and let something above it talk SCSI so it would
still look like a disk as far as the rest of the system was concerned.

As for console input, we already have a console input file, right?  Or
at least a keyboard input file that effectively emulates a console
input file.  Can't we just cat whatever into that file to provide
console input from multiple sources?  E.g., cat /dev/eia0 > /dev/kbdin
(possibly parsing what comes out of /dev/eia0 to look for latin1()
style key sequences.  Perhaps it's time to look at pulling latin1() out
of the kernel and plonking it into libc again.  Everything that needs
to do alt sequences uses it, why is it still in the kernel?  But I
digress).  That is, just put the loopback in userland where it
belongs.  I think you're trying to get at something more subtle,
though, and I'm probably missing the point.

	- Dan C.



  parent reply	other threads:[~2004-07-14  4:31 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13 13:57 ron minnich
2004-07-14  1:24 ` Geoff Collyer
2004-07-14  2:10   ` ron minnich
2004-07-14  2:30     ` Geoff Collyer
2004-07-14  2:47       ` ron minnich
2004-07-14  2:34     ` andrey mirtchovski
2004-07-14  2:47       ` ron minnich
2004-07-14  2:51         ` Kenji Okamoto
2004-07-14  4:40           ` Dan Cross
2004-07-14 13:33           ` OT: " Dave Lukes
2004-07-14 14:08             ` ron minnich
2004-07-14 15:31               ` Jack Johnson
2004-07-14  5:00         ` Skip Tavakkolian
2004-07-14 10:34         ` matt
2004-07-14 14:04           ` ron minnich
2004-07-14 14:04           ` Dave Lukes
2004-07-14 15:03             ` ron minnich
2004-07-14 16:13               ` boyd, rounin
2004-07-14 14:52           ` boyd, rounin
2004-07-14  2:49       ` Kenji Okamoto
2004-07-14  4:36       ` Dan Cross
2004-07-14  2:38     ` Kenji Okamoto
2004-07-14  2:49       ` ron minnich
2004-07-14  5:15         ` Geoff Collyer
2004-07-14  6:36           ` Geoff Collyer
2004-07-14 13:47           ` ron minnich
2004-07-14 18:29             ` Dan Cross
2004-07-14 18:53               ` boyd, rounin
2004-07-14 19:42               ` ron minnich
2004-07-14 20:14                 ` Charles Forsyth
2004-07-14 20:19                 ` Frank Palazzolo
2004-07-14 20:18                   ` Charles Forsyth
2004-07-14 21:06                     ` Geoff Collyer
2004-07-14 21:31                   ` boyd, rounin
2004-07-14  4:31 ` Dan Cross [this message]
     [not found] <00aba352392cbadebd943e05d1e17412@plan9.ucalgary.ca>
2004-07-15  3:14 ` Geoff Collyer

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=200407140431.i6E4VAP00788@augusta.math.psu.edu \
    --to=cross@math.psu.edu \
    --cc=9fans@cse.psu.edu \
    /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).