libftdi Archives

Subject: Re: Claiming devices has no effect under Linux

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 7 Oct 2010 17:25:52 +0800
On Thu, Oct 7, 2010 at 4:53 PM, Thomas Klose <thomas.klose@xxxxxxxxxxxxx> wrote:
>> > 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.
>
> Yes, libusb this is great. One thing is interesting about it: Even
> though libusb depends on the fact that no module is attached to the USB
> device, it does not call the detach/re-attach functions automatically.
> The programmer who uses the library decides if it is necessary or useful
> to do so. And that is exactly my point.
>

I see your point. So if libftdi detaches the kernel driver in
the beginning and then reattach the kernel driver in the end,
are you happy?

Or you really want libftdi to fail in the beginning of the
kernel ftdi-sio driver is attached to the device. I think
this will be a tough sell for this group.


-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread