Socket I/O to/from arbitrary device
Gary Oberbrunner
garyo at think.com
Tue Nov 20 10:00:51 AEST 1990
I would like to have a socket interface to an arbitrary character special
device (bsd and/or sysv replies appreciated). I already have a driver for
my device that gives me the usual read/write interface. I would like to
make it look like a socket, i.e. connect(), etc. I can use ifconfig to
tell the OS to use my driver for a certain address, no problem. My problem
comes when I actually get data in from the device; do I have to call
tcp_input (or ipinput or whatever) with my mbuf, or will the OS just call
my read routine? My data is NOT in any packetized or network format, it's
just raw data. I'd like to patch into the OS at the level where tcp says
"I just got this data off the net; here it is for you to return to the
caller." Is this possible/easy?
If you know how to do this or know what book I should read to figure this
stuff (and related issues) out, please let me know. Reply by email to
garyo at think.com, since this kind of thing is probably not of general
interest, and I don't usually read this newsgroup (except when I have lots
of spare time...)
Thanks,
- Gary Oberbrunner
Thinking Machines Corporation
245 First St
Cambridge, MA 02142
garyo at think.com
More information about the Comp.unix.questions
mailing list