On Thu, Jul 07, 2005 at 09:20:44PM +0530, Jayaprakash Shanmugam wrote:
> I have one driver serving 4 devices at a time. Can't I have one fixed
> minor number for one device ?
> 
> When read() / write() into the device, how can I know which device I
> am operating on ?

Get the pointer to the device that is associated with that minor number.
See the usb-skeleton driver as an example.

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
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