Am Freitag, 11. M�rz 2005 21:50 schrieb Jayaprakash Shanmugam:
> � �I am new to USB world. �I have a basic doubt. �I wrote the USB
> driver by going through some tutorials. �I compiled it and inmod it
> without any problems. �Now, If I want to use my driver, I need a major
> number. �There I got stuck up. �I didnt have any major number used in
> my driver. �So, how to open the USB device ?

You use usb_register_dev(). And you do that in your probe() method,
not in your init() method. Init() has usb_register(), probe() has
usb_register_dev(). Simplified of course. There are other ways, but this
is the simplest way. usblp is a nice example.

You then open your device using the open(2) syscall.

        HTH
                Oliver


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to