/* setup.h (c) 1997-8 Grant R. Guenther Under the terms of the GNU General Public License. This is a table driven setup function for kernel modules using the module.variable=val,... command line notation. */ /* Changes: 1.01 GRG 1998.05.05 Allow negative and defaulted values */ #include #include struct setup_tab_t { char *tag; /* variable name */ int size; /* number of elements in array */ int *iv; /* pointer to variable */ }; typedef struct setup_tab_t STT; /* t is a table that describes the variables that can be set by gen_setup n is the number of entries in the table ss is a string of the form: =[,...] */ static void generic_setup( STT t[], int n, char *ss ) { int j,k, sgn; k = 0; for (j=0;j