Re: Question About Use of Module Parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 10, 2009 at 12:06:42PM -0700, Rory Filer wrote:
> > -----Original Message-----
> > >
> > > My question, is this a "proper" use of a module parameter or is there
> > another preferred method for accomplishing this feat?
> > 
> > You should ask first if this is a "possible" use.  What happens if your
> > driver is bound to more than one device?
> > 
> > You can use a regular sysfs attribute file instead of a module
> > parameter.
> > 
> > Alan Stern
> > 
> 
> Good point, thanks - I was fixated on that idea, but clearly it would not work for multiple modems. I'll look into your suggestion of an attribute file. 

Yes, an attribute file is the proper thing to do here.  Module
parameters are ment to be written from userspace, not polled/queried
from userspace to see if something has changed.

thanks,

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux