mirror of
https://github.com/bashrc/LKMPG.git
synced 2018-06-11 03:06:54 +02:00
Fix typo #12
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user