Am Freitag, 1. Dezember 2006 19:10 schrieb Phil Drain:

> 1) With regard to USB in general, how does one logically detach a single 
> device from a built-in driver (that is, NOT physically remove it from the 
> system) without unloading the driver itself? Specifically, I need to detach 
> an MSC device from the Kernel driver so I can claim it with a custom user 
> mode driver (with root privileges) that allows access to a manufacturing 
> interface for re-configuration and diagnostics. I don't want to shut down 
> the Kernel driver because I want the other attached MSC devices to continue 
> to operate. I would need to re-attach the device to the Kernel driver at the 
> close of the app.

bind/unbind entries of sysfs. If you need it to work on 2.4, ioctl through 
usbfs.

> 2) With regard to HID ..... There are many advantages to designing a USB 
> device so it binds to the HID driver, even if it's not a "traditional" HID 
> device. Indeed, since HID is universal across almost all host environments I 
> develop most custom devices that don't already fall into a pre-defined USB 
> class as HID class devices with a vendor defined interface so that my client 
> has access to most platforms without the need to distribute a driver.
> 
> So, getting to my question ...... If I may use a WIN example, on the device 
> I define a simple "In" buffer and a simple "Out" buffer in the report 
> descriptor then in the WIN app, I find the device, open it then use the 
> readFile() & writeFile() calls. Does the GNU/Linux HID subsystem support 
> such a mechanism? I prefer not to do as in (1) above ....

HID devices that are not genuine input devices are bound to the hiddev driver.
It appears as a normal character device.

        HTH
                Oliver

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to