Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-19-2008, 01:51 PM   #1
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!

Old 02-19-2008, 03:39 PM   #2
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.

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, 05:33 PM   #3
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?


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 06: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 01:51 AM
user-space notification of USB device attached/detached rhardy Linux - Newbie 1 10-25-2006 09:31 AM
user-space notification of USB device attached/detached rhardy Linux - Software 1 10-24-2006 04:17 PM
Retrieve write protect state of USB device in user space GeertPh Linux - Software 0 10-03-2006 02:25 AM

All times are GMT -5. The time now is 05:43 AM.

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