Re: Passing argument to USB Storage driver

Oliver Neukum <[email protected]> Tue, 8 Jan 2008 19:08:13 +0100
Newsgroups gmane.linux.usb.devel
Organization Novell
Message-ID <[email protected]>
Am Dienstag, 8. Januar 2008 19:00:16 schrieb Kevin Lloyd:
> On Jan 8, 2008 9:43 AM, Oliver Neukum <[email protected]> wrote:
> > Am Dienstag, 8. Januar 2008 18:10:41 schrieb Kevin Lloyd:
> > > An acceptable solution would be to have the driver read settings from
> > > the file-system. Is there a standardized way to do this (and location
> > > for the files)?
> >
> > This is not an acceptable solution. Before you commit such a layering
> > violation, use a module parameter.
> >
> >         Regards
> >                 Oliver
> >
> >
> So my only option is to create a new module_param in the usb-storage

Yes.

> usb.c driver? Even if I #ifdef it it seems like little messy of a
> solution, are there any other suggestions?

No.
 
> WRT to the other solution you suggested against (file-system based), I
> know this is likely a dumb question, but is there not a way for
> drivers to read user space controlled settings (something analogous to
> the Windows registry)?

There is no such thing. Reading a file from a driver is anathema.

	Regards
		Oliver


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel