Re: blank filenames in /sys/modules, kernel 2.6.21
"Robert P. J. Day" <[email protected]>
| Newsgroups | gmane.linux.usb.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 8 Jun 2007, Pete Zaitcev wrote: > On Fri, 8 Jun 2007 11:32:32 -0700, Greg KH <[email protected]> wrote: > > > > and from drivers/usb/core/usb.c: > > > > > > /* format to disable USB on kernel command line is: nousb */ > > > __module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444); > > > Pete added that back in December of 2005 (git-blame rocks...). So what > > has changed recently to cause this to do different things in sysfs? > > > > Robert, what do you suggest we change this usage to look like? > > Aww. I thought it was a nice patch, but my foresight was inadequate. > > The problem I tried to fix was related to strncmp used in the code which > supported __setup(). Our installer, Anaconda, recognizes both "nousb" and > "nousbstorage" - in theory. In practice, passing "nousbstorage" switched > USB completely off because of improper strncmp(). If we back out my patch, > this problem is going to reoccur. > > We might want to ask Jeremy Katz if "nousbstorage" is even used anymore, > then revert all this if not. Or, we can add a name somehow and live > with it visible in sysfs... there appears to be no reference to "nousbstorage" anywhere in the tree. go for it. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel