LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Help writing my first USB driver ( no user space code needed )
@ 2008-02-18 18:47 kernel.org
2008-02-19 0:16 ` Daniel Drake
0 siblings, 1 reply; 2+ messages in thread
From: kernel.org @ 2008-02-18 18:47 UTC (permalink / raw)
To: linux-kernel
hello,
I am trying to write a device driver for a USB device that is not currently
supported by Linux. Trouble is all the examples I have found so far (
usb-skel.c and others ) give an example of a driver that is a middle man
between a userspace application and the device. So there are no examples on
how to actually send the data to the device.
In my case, the device I am using simply uses the machine it is connected
to as an internet connection. The driver should send/receive data from the
device and allow the device to go and make TCP connections to the internet.
( The device is intelligent ).
Are there any examples that are available that would help me get started on
this?
Basically the USB device sends plain text with words like "connect, send,
recv, close" and the driver needs to make connections, send/receive data
(TCP ) and close the connection.
Thanks,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help writing my first USB driver ( no user space code needed )
2008-02-18 18:47 Help writing my first USB driver ( no user space code needed ) kernel.org
@ 2008-02-19 0:16 ` Daniel Drake
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Drake @ 2008-02-19 0:16 UTC (permalink / raw)
To: kernel.org; +Cc: linux-kernel
kernel.org@spam.bounceme.net wrote:
> I am trying to write a device driver for a USB device that is not currently
> supported by Linux. Trouble is all the examples I have found so far (
> usb-skel.c and others ) give an example of a driver that is a middle man
> between a userspace application and the device. So there are no examples on
> how to actually send the data to the device.
>
> In my case, the device I am using simply uses the machine it is connected
> to as an internet connection. The driver should send/receive data from the
> device and allow the device to go and make TCP connections to the internet.
You probably want to do this in userspace using libusb. I would be
surprised if there is any sane way of creating and managing TCP
connections from inside the kernel.
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-19 0:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-18 18:47 Help writing my first USB driver ( no user space code needed ) kernel.org
2008-02-19 0:16 ` Daniel Drake
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).