Re: 2.6.20-rc6 pb_fnmode regression
Sergey Vlasov <[email protected]>
| Newsgroups | gmane.linux.usb.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 29, 2007 at 10:55:48AM +0100, Jiri Kosina wrote: > Changing module parameter values through sysfs is not a very nice idea, > because the change of the value is indeed silent - the driver is not > notified in any way, that the value has changed. So the driver should take > care of it by itself, which is not a nice thing. There is module_param_call() - used at least by drivers/md/md.c: static int get_ro(char *buffer, struct kernel_param *kp) ... static int set_ro(const char *val, struct kernel_param *kp) ... module_param_call(start_ro, set_ro, get_ro, NULL, S_IRUSR|S_IWUSR); ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFFvcvhW82GfkQfsqIRAq/0AJ40A/Wfpas3BaBwROM+Z0ysKDbxMgCcD/7L Hxw+f5j+PKRcGx+WxyD0Tno= =Awbf -----END PGP SIGNATURE-----