Re: How many ways are there to access a usb device?

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, Apr 23, 2007 at 09:34:38PM +0530, Ashok Kumar wrote:
> Hi,
> 
> for this conversation i am taking a simple usb device( surely this is
> not  a block device, a kind of char device)
> 
> step 1
> ---------
> i can create a kernel module with specifically allocated major and
> minor number. so through device file i can access the device driver.
> This is surely a char device driver.
> 
> step 2
> ----------
> i can create a kernel module without specifically allocated major and
> minor number.
> But i will create only attribute files in /sys. so that i can access the device.
>  still, is it a char device driver.?

No, /sys does not have a char device interface.

There is also the way to access the device though usbfs in /proc/bus/usb
or /dev/bus/usb, depending on how your distro sets it up.

thanks,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.