From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen Morgan" Date: Wed, 18 May 2005 20:56:08 +0000 Subject: RE: Need persistent node to USB port naming Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > You can also override the default functions that are called when the > value is written to, in order to do different things when this happens, > but that functionality is only rarely needed. I think that's got it, Greg. Thanks very much for your help. Stephen /**************************************************/ static int my_command_set(const char *val, struct kernel_param *kp) { // convert val to an int and switch() on it return 0; } int my_command; // use my 'set' but use the kernel's default 'get' module_param_call(my_command, my_command_set, param_get_int, &my_command, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(my_command, "My Driver Command"); /**************************************************/ ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12&alloc_id344&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel