LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-19-2008, 12:51 PM   #1
ddraper
LQ Newbie
 
Registered: Feb 2008
Location: Seattle, WA
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Interfacing a USB device driver into user space?


I'm designing a custom high throughput, tightly timed USB system (read: the libusb library is not really an option).

I've already written a kernel USB device driver which interfaces to the USB core driver. When the device is plugged in, it correctly identifies and connects to the driver.

What I need now is to use the driver's functionality from user space. Ideally, I want to develop an application that can perform a few different individual routines, based on user input. How can I make this interface between kernel and user space happen?

I'm reading a char interface would be the best option, but how do I tie in the char interface with the USB device driver? The documentation on connecting a USB driver to user space is a little sparse. Are there any good examples of this? Any thoughts or input would be much appreciated!

-D
 
Old 02-19-2008, 02:39 PM   #2
jasonpower
LQ Newbie
 
Registered: Jul 2004
Location: Tennessee
Posts: 21

Rep: Reputation: 15
Here is a tutorial describing how to write a driver completely in user space. www.linuxjournal.com/article/7466

I'm not sure exactly how to use kernel drivers in user space (I'm just starting to look at things like that) but maybe the above could be helpful.
 
Old 02-19-2008, 04:33 PM   #3
ddraper
LQ Newbie
 
Registered: Feb 2008
Location: Seattle, WA
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
unfortunately, I don't think libusb will work for me, which is what is documented in the article. I really need asynchronous usb.

However, using the usbfs Device files looks promising. Has anyone used these before, or know of any decent documentation?
 
  


Reply

Tags
drivers, kernel, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Space Device Driver jvogel Linux - Kernel 4 10-16-2007 05:46 PM
How to get data from a terminal driver from user space? Any ioctl for this? Sreeram B S Linux - Kernel 0 02-24-2007 12:51 AM
user-space notification of USB device attached/detached rhardy Linux - Newbie 1 10-25-2006 08:31 AM
user-space notification of USB device attached/detached rhardy Linux - Software 1 10-24-2006 03:17 PM
Retrieve write protect state of USB device in user space GeertPh Linux - Software 0 10-03-2006 01:25 AM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration