Thank you for your three examples,Jan.
I will learned it carefully.
1)what I want to do.
en,I want to write a program/device driver for a new USB device made by ourselves,which not compatible with the standard class,such keyboard,mice and mass storage.
our USB device is designed to be transfer data,in and out,and maybe quite a big num of the data.we want it transfer fast.(12M with USB2.0 would be pleased.)
In addition ,I want to make the standard class won't be responsed valid by my beagleboard when we finish the product.
So,I try to make sure that whether a user space program with libusb could generally replace a USB device driver.
2)Why not device driver
Well,I am a newbie to Linux.I have not much knowledge and confidence to do something relation with the kernel,I m afraid that my driver would cause some problem I cannot find at first,but finally crack the whole system.
One more reason I ve write in the first post.Yeah ,I got the problem when the USB insert,but the PROBE just didnt called.
then I got the news about libusb,so I try to use it.
3)about HID
at first,I just though that HID is something like keyboard and mice,it may not suitable for my application,so I just not care much about it.
So,in your net,Lakeview,I found your sample,quite a lot is relation to HID,so I dont pay much attention about it.
(Others like in WIN,because I work for Linux,so not much attention,too.)
However,later,I got a pdf about HID class,I got to know that HID are used widely than I thought,so I would pay more attention about it.
thanks a lot for your reply!