Re: Maybe OT: Unregistering a USB device

From: Greg KH (greg@kroah.com)
Date: Thu Jan 09 2003 - 03:10:58 EST


On Mon, Jan 06, 2003 at 07:27:12AM +0000, Rus Foster wrote:
> On 5 Jan 2003, Dmitri wrote:
>
> > On Sun, 2003-01-05 at 15:09, Rus Foster wrote:
> >
> > Someone else asked this question earlier:
> >
> > http://marc.theaimsgroup.com/?l=linux-usb-users&m=104127472526623&w=2
> >
> > Dmitri
>
> Ah right the problem is that
> a) I still want one of the usb-mass storage devices to still be accessible
> at the same time.
> b) My kernel is monolithic

You can use the USBDEVFS_DISCONNECT ioctl on the usb device node in
usbfs to disconnect the driver from the device.

Hope this helps,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:27 EST