mirror of https://github.com/tLDP/LDP
adding a few <para/> and correcting one entity
This commit is contained in:
parent
d790bad20c
commit
823c0634bd
|
@ -328,7 +328,7 @@ Module xxxxxx loaded, with warnings
|
|||
<para>The <function>module_param()</function> macro takes 3 arguments: the name of the variable, its type and
|
||||
permissions for the corresponding file in sysfs. Integer types can be signed as usual or unsigned.
|
||||
If you'd like to use arrays of integers or strings see <function>module_param_array()</function> and
|
||||
<function>module_param_string()</function>.
|
||||
<function>module_param_string()</function>.</para>
|
||||
|
||||
|
||||
<screen>
|
||||
|
@ -346,7 +346,7 @@ module_param_array(myintarray, int, NULL, 0); /* not interested in count */
|
|||
|
||||
int myshortarray[4];
|
||||
int count;
|
||||
module_parm_array(myshortarray, short, &count, 0); /* put count into "count" variable */
|
||||
module_parm_array(myshortarray, short, &count, 0); /* put count into "count" variable */
|
||||
</screen>
|
||||
|
||||
<para>A good use for this is to have the module variable's default values set, like an port or IO address. If the variables
|
||||
|
|
Loading…
Reference in New Issue