On Thu, Oct 7, 2010 at 4:56 AM, Thomas Klose <thomas.klose@xxxxxxxxxxxxx> wrote:
> Am Mittwoch, den 06.10.2010, 16:30 -0400 schrieb DJ Delorie:
>> > In this case you could detach sio with modprobe, rmmod,
>> ... detaching all my modems...
>> > usb_detach_kernel_driver(), or whatever in your *application*.
>> My application does not have root privs, so it cannot do any of the
>> above. The FTDI device in question has a "device name" string that
>> the kernel matches to set the device permissions to allow libftdi (and
>> thus my custom application) to detach the driver though.
> You do not need root privileges for usb_detach_kernel_driver().
And that is one of the the beauties of using libusb and kernel
driver detaching. You do not need root privileges. But you do
need to set up proper udev rules.
Some references about udev.
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx