Re: Question About Use of Module Parameter

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

 



On Wed, 10 Jun 2009, Rory Filer wrote:

> Hi
> 
> We are working on a feature that requires the driver to somehow indicate a status to an application in user-mode. We were thinking of using a module parameter and sysfs as follows:
> 
> - driver updates the module parameter with the status (boolean is fine), so it is writing the status
> 
> - There is no need for the application to receive notifications in an interrupt-like manner so periodically scanning the module parameter via file reads in sysfs will work fine. User mode application is read-only for the module parameter.
> 
> 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

--
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