From: Daniel Drake <dsd@gentoo.org>
To: kernel.org@spam.bounceme.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: Help writing my first USB driver ( no user space code needed )
Date: Tue, 19 Feb 2008 00:16:39 +0000 [thread overview]
Message-ID: <47BA1FE7.4050905@gentoo.org> (raw)
In-Reply-To: <4001cab67e57fde89217db5cc31f921c@lublink.net>
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
prev parent reply other threads:[~2008-02-19 0:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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=47BA1FE7.4050905@gentoo.org \
--to=dsd@gentoo.org \
--cc=kernel.org@spam.bounceme.net \
--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