1
0
mirror of https://github.com/bashrc/LKMPG.git synced 2018-06-11 03:06:54 +02:00
This commit is contained in:
Bob Mottram
2018-05-21 20:36:13 +01:00
parent 6e8a27232c
commit 41f6bf0915

View File

@@ -369,7 +369,7 @@ module_param_array(myintarray, int, NULL, 0); /* not interested in count */
short myshortarray[4]; short myshortarray[4];
int count; int count;
module_parm_array(myshortarray, short, &count, 0); /* put count into "count" variable */ module_param_array(myshortarray, short, &count, 0); /* put count into "count" variable */
#+END_SRC #+END_SRC
A good use for this is to have the module variable's default values set, like an port or IO address. If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value. This will be made clear later on. A good use for this is to have the module variable's default values set, like an port or IO address. If the variables contain the default values, then perform autodetection (explained elsewhere). Otherwise, keep the current value. This will be made clear later on.