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/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to