On Sat, 10 Mar 2007, Phil Dibowitz wrote:

> > Have you tried setting the usbfs_snoop=1 module parameter for usbcore?  It 
> > will dump your program's I/O activity to the system log.
> 
> No, I didn't, but that's a good idea. Is there a way to change this
> on-the-fly through, say, sysfs? I couldn't rmmod usbcore without -f, and
> then re-modprobing it caused and oops (though I am on a relatively old
> kernel... 2.6.15.6).

Never try to use rmmod -f.  It's virtually guaranteed to crash your 
system.

You should realize that you can't rmmod usbcore without first unloading
everything that uses it.  That includes ehci-hcd, ohci-hcd, uhci-hcd, and
any other USB drivers.  You also have to unmount /proc/bus/usb if it is
mounted.

You can change some module parameters on-the-fly.  In this case you would 
have to write to /sys/module/usbcore/parameters/usbfs_snoop.

Alan Stern


-------------------------------------------------------------------------
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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to