params.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  1. /* Helpers for initial module or kernel cmdline parsing
  2. Copyright (C) 2001 Rusty Russell.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #include <linux/config.h>
  16. #include <linux/moduleparam.h>
  17. #include <linux/kernel.h>
  18. #include <linux/string.h>
  19. #include <linux/errno.h>
  20. #include <linux/module.h>
  21. #include <linux/device.h>
  22. #include <linux/err.h>
  23. #if 0
  24. #define DEBUGP printk
  25. #else
  26. #define DEBUGP(fmt, a...)
  27. #endif
  28. static inline int dash2underscore(char c)
  29. {
  30. if (c == '-')
  31. return '_';
  32. return c;
  33. }
  34. static inline int parameq(const char *input, const char *paramname)
  35. {
  36. unsigned int i;
  37. for (i = 0; dash2underscore(input[i]) == paramname[i]; i++)
  38. if (input[i] == '\0')
  39. return 1;
  40. return 0;
  41. }
  42. static int parse_one(char *param,
  43. char *val,
  44. struct kernel_param *params,
  45. unsigned num_params,
  46. int (*handle_unknown)(char *param, char *val))
  47. {
  48. unsigned int i;
  49. /* Find parameter */
  50. for (i = 0; i < num_params; i++) {
  51. if (parameq(param, params[i].name)) {
  52. DEBUGP("They are equal! Calling %p\n",
  53. params[i].set);
  54. return params[i].set(val, &params[i]);
  55. }
  56. }
  57. if (handle_unknown) {
  58. DEBUGP("Unknown argument: calling %p\n", handle_unknown);
  59. return handle_unknown(param, val);
  60. }
  61. DEBUGP("Unknown argument `%s'\n", param);
  62. return -ENOENT;
  63. }
  64. /* You can use " around spaces, but can't escape ". */
  65. /* Hyphens and underscores equivalent in parameter names. */
  66. static char *next_arg(char *args, char **param, char **val)
  67. {
  68. unsigned int i, equals = 0;
  69. int in_quote = 0, quoted = 0;
  70. char *next;
  71. /* Chew any extra spaces */
  72. while (*args == ' ') args++;
  73. if (*args == '"') {
  74. args++;
  75. in_quote = 1;
  76. quoted = 1;
  77. }
  78. for (i = 0; args[i]; i++) {
  79. if (args[i] == ' ' && !in_quote)
  80. break;
  81. if (equals == 0) {
  82. if (args[i] == '=')
  83. equals = i;
  84. }
  85. if (args[i] == '"')
  86. in_quote = !in_quote;
  87. }
  88. *param = args;
  89. if (!equals)
  90. *val = NULL;
  91. else {
  92. args[equals] = '\0';
  93. *val = args + equals + 1;
  94. /* Don't include quotes in value. */
  95. if (**val == '"') {
  96. (*val)++;
  97. if (args[i-1] == '"')
  98. args[i-1] = '\0';
  99. }
  100. if (quoted && args[i-1] == '"')
  101. args[i-1] = '\0';
  102. }
  103. if (args[i]) {
  104. args[i] = '\0';
  105. next = args + i + 1;
  106. } else
  107. next = args + i;
  108. return next;
  109. }
  110. /* Args looks like "foo=bar,bar2 baz=fuz wiz". */
  111. int parse_args(const char *name,
  112. char *args,
  113. struct kernel_param *params,
  114. unsigned num,
  115. int (*unknown)(char *param, char *val))
  116. {
  117. char *param, *val;
  118. DEBUGP("Parsing ARGS: %s\n", args);
  119. while (*args) {
  120. int ret;
  121. args = next_arg(args, &param, &val);
  122. ret = parse_one(param, val, params, num, unknown);
  123. switch (ret) {
  124. case -ENOENT:
  125. printk(KERN_ERR "%s: Unknown parameter `%s'\n",
  126. name, param);
  127. return ret;
  128. case -ENOSPC:
  129. printk(KERN_ERR
  130. "%s: `%s' too large for parameter `%s'\n",
  131. name, val ?: "", param);
  132. return ret;
  133. case 0:
  134. break;
  135. default:
  136. printk(KERN_ERR
  137. "%s: `%s' invalid for parameter `%s'\n",
  138. name, val ?: "", param);
  139. return ret;
  140. }
  141. }
  142. /* All parsed OK. */
  143. return 0;
  144. }
  145. /* Lazy bastard, eh? */
  146. #define STANDARD_PARAM_DEF(name, type, format, tmptype, strtolfn) \
  147. int param_set_##name(const char *val, struct kernel_param *kp) \
  148. { \
  149. char *endp; \
  150. tmptype l; \
  151. \
  152. if (!val) return -EINVAL; \
  153. l = strtolfn(val, &endp, 0); \
  154. if (endp == val || ((type)l != l)) \
  155. return -EINVAL; \
  156. *((type *)kp->arg) = l; \
  157. return 0; \
  158. } \
  159. int param_get_##name(char *buffer, struct kernel_param *kp) \
  160. { \
  161. return sprintf(buffer, format, *((type *)kp->arg)); \
  162. }
  163. STANDARD_PARAM_DEF(byte, unsigned char, "%c", unsigned long, simple_strtoul);
  164. STANDARD_PARAM_DEF(short, short, "%hi", long, simple_strtol);
  165. STANDARD_PARAM_DEF(ushort, unsigned short, "%hu", unsigned long, simple_strtoul);
  166. STANDARD_PARAM_DEF(int, int, "%i", long, simple_strtol);
  167. STANDARD_PARAM_DEF(uint, unsigned int, "%u", unsigned long, simple_strtoul);
  168. STANDARD_PARAM_DEF(long, long, "%li", long, simple_strtol);
  169. STANDARD_PARAM_DEF(ulong, unsigned long, "%lu", unsigned long, simple_strtoul);
  170. int param_set_charp(const char *val, struct kernel_param *kp)
  171. {
  172. if (!val) {
  173. printk(KERN_ERR "%s: string parameter expected\n",
  174. kp->name);
  175. return -EINVAL;
  176. }
  177. if (strlen(val) > 1024) {
  178. printk(KERN_ERR "%s: string parameter too long\n",
  179. kp->name);
  180. return -ENOSPC;
  181. }
  182. *(char **)kp->arg = (char *)val;
  183. return 0;
  184. }
  185. int param_get_charp(char *buffer, struct kernel_param *kp)
  186. {
  187. return sprintf(buffer, "%s", *((char **)kp->arg));
  188. }
  189. int param_set_bool(const char *val, struct kernel_param *kp)
  190. {
  191. /* No equals means "set"... */
  192. if (!val) val = "1";
  193. /* One of =[yYnN01] */
  194. switch (val[0]) {
  195. case 'y': case 'Y': case '1':
  196. *(int *)kp->arg = 1;
  197. return 0;
  198. case 'n': case 'N': case '0':
  199. *(int *)kp->arg = 0;
  200. return 0;
  201. }
  202. return -EINVAL;
  203. }
  204. int param_get_bool(char *buffer, struct kernel_param *kp)
  205. {
  206. /* Y and N chosen as being relatively non-coder friendly */
  207. return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'Y' : 'N');
  208. }
  209. int param_set_invbool(const char *val, struct kernel_param *kp)
  210. {
  211. int boolval, ret;
  212. struct kernel_param dummy = { .arg = &boolval };
  213. ret = param_set_bool(val, &dummy);
  214. if (ret == 0)
  215. *(int *)kp->arg = !boolval;
  216. return ret;
  217. }
  218. int param_get_invbool(char *buffer, struct kernel_param *kp)
  219. {
  220. int val;
  221. struct kernel_param dummy = { .arg = &val };
  222. val = !*(int *)kp->arg;
  223. return param_get_bool(buffer, &dummy);
  224. }
  225. /* We cheat here and temporarily mangle the string. */
  226. int param_array(const char *name,
  227. const char *val,
  228. unsigned int min, unsigned int max,
  229. void *elem, int elemsize,
  230. int (*set)(const char *, struct kernel_param *kp),
  231. int *num)
  232. {
  233. int ret;
  234. struct kernel_param kp;
  235. char save;
  236. /* Get the name right for errors. */
  237. kp.name = name;
  238. kp.arg = elem;
  239. /* No equals sign? */
  240. if (!val) {
  241. printk(KERN_ERR "%s: expects arguments\n", name);
  242. return -EINVAL;
  243. }
  244. *num = 0;
  245. /* We expect a comma-separated list of values. */
  246. do {
  247. int len;
  248. if (*num == max) {
  249. printk(KERN_ERR "%s: can only take %i arguments\n",
  250. name, max);
  251. return -EINVAL;
  252. }
  253. len = strcspn(val, ",");
  254. /* nul-terminate and parse */
  255. save = val[len];
  256. ((char *)val)[len] = '\0';
  257. ret = set(val, &kp);
  258. if (ret != 0)
  259. return ret;
  260. kp.arg += elemsize;
  261. val += len+1;
  262. (*num)++;
  263. } while (save == ',');
  264. if (*num < min) {
  265. printk(KERN_ERR "%s: needs at least %i arguments\n",
  266. name, min);
  267. return -EINVAL;
  268. }
  269. return 0;
  270. }
  271. int param_array_set(const char *val, struct kernel_param *kp)
  272. {
  273. struct kparam_array *arr = kp->arg;
  274. unsigned int temp_num;
  275. return param_array(kp->name, val, 1, arr->max, arr->elem,
  276. arr->elemsize, arr->set, arr->num ?: &temp_num);
  277. }
  278. int param_array_get(char *buffer, struct kernel_param *kp)
  279. {
  280. int i, off, ret;
  281. struct kparam_array *arr = kp->arg;
  282. struct kernel_param p;
  283. p = *kp;
  284. for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) {
  285. if (i)
  286. buffer[off++] = ',';
  287. p.arg = arr->elem + arr->elemsize * i;
  288. ret = arr->get(buffer + off, &p);
  289. if (ret < 0)
  290. return ret;
  291. off += ret;
  292. }
  293. buffer[off] = '\0';
  294. return off;
  295. }
  296. int param_set_copystring(const char *val, struct kernel_param *kp)
  297. {
  298. struct kparam_string *kps = kp->arg;
  299. if (strlen(val)+1 > kps->maxlen) {
  300. printk(KERN_ERR "%s: string doesn't fit in %u chars.\n",
  301. kp->name, kps->maxlen-1);
  302. return -ENOSPC;
  303. }
  304. strcpy(kps->string, val);
  305. return 0;
  306. }
  307. int param_get_string(char *buffer, struct kernel_param *kp)
  308. {
  309. struct kparam_string *kps = kp->arg;
  310. return strlcpy(buffer, kps->string, kps->maxlen);
  311. }
  312. /* sysfs output in /sys/modules/XYZ/parameters/ */
  313. extern struct kernel_param __start___param[], __stop___param[];
  314. #define MAX_KBUILD_MODNAME KOBJ_NAME_LEN
  315. struct param_attribute
  316. {
  317. struct module_attribute mattr;
  318. struct kernel_param *param;
  319. };
  320. struct module_param_attrs
  321. {
  322. struct attribute_group grp;
  323. struct param_attribute attrs[0];
  324. };
  325. #define to_param_attr(n) container_of(n, struct param_attribute, mattr);
  326. static ssize_t param_attr_show(struct module_attribute *mattr,
  327. struct module *mod, char *buf)
  328. {
  329. int count;
  330. struct param_attribute *attribute = to_param_attr(mattr);
  331. if (!attribute->param->get)
  332. return -EPERM;
  333. count = attribute->param->get(buf, attribute->param);
  334. if (count > 0) {
  335. strcat(buf, "\n");
  336. ++count;
  337. }
  338. return count;
  339. }
  340. /* sysfs always hands a nul-terminated string in buf. We rely on that. */
  341. static ssize_t param_attr_store(struct module_attribute *mattr,
  342. struct module *owner,
  343. const char *buf, size_t len)
  344. {
  345. int err;
  346. struct param_attribute *attribute = to_param_attr(mattr);
  347. if (!attribute->param->set)
  348. return -EPERM;
  349. err = attribute->param->set(buf, attribute->param);
  350. if (!err)
  351. return len;
  352. return err;
  353. }
  354. #ifdef CONFIG_MODULES
  355. #define __modinit
  356. #else
  357. #define __modinit __init
  358. #endif
  359. /*
  360. * param_sysfs_setup - setup sysfs support for one module or KBUILD_MODNAME
  361. * @mk: struct module_kobject (contains parent kobject)
  362. * @kparam: array of struct kernel_param, the actual parameter definitions
  363. * @num_params: number of entries in array
  364. * @name_skip: offset where the parameter name start in kparam[].name. Needed for built-in "modules"
  365. *
  366. * Create a kobject for a (per-module) group of parameters, and create files
  367. * in sysfs. A pointer to the param_kobject is returned on success,
  368. * NULL if there's no parameter to export, or other ERR_PTR(err).
  369. */
  370. static __modinit struct module_param_attrs *
  371. param_sysfs_setup(struct module_kobject *mk,
  372. struct kernel_param *kparam,
  373. unsigned int num_params,
  374. unsigned int name_skip)
  375. {
  376. struct module_param_attrs *mp;
  377. unsigned int valid_attrs = 0;
  378. unsigned int i, size[2];
  379. struct param_attribute *pattr;
  380. struct attribute **gattr;
  381. int err;
  382. for (i=0; i<num_params; i++) {
  383. if (kparam[i].perm)
  384. valid_attrs++;
  385. }
  386. if (!valid_attrs)
  387. return NULL;
  388. size[0] = ALIGN(sizeof(*mp) +
  389. valid_attrs * sizeof(mp->attrs[0]),
  390. sizeof(mp->grp.attrs[0]));
  391. size[1] = (valid_attrs + 1) * sizeof(mp->grp.attrs[0]);
  392. mp = kmalloc(size[0] + size[1], GFP_KERNEL);
  393. if (!mp)
  394. return ERR_PTR(-ENOMEM);
  395. mp->grp.name = "parameters";
  396. mp->grp.attrs = (void *)mp + size[0];
  397. pattr = &mp->attrs[0];
  398. gattr = &mp->grp.attrs[0];
  399. for (i = 0; i < num_params; i++) {
  400. struct kernel_param *kp = &kparam[i];
  401. if (kp->perm) {
  402. pattr->param = kp;
  403. pattr->mattr.show = param_attr_show;
  404. pattr->mattr.store = param_attr_store;
  405. pattr->mattr.attr.name = (char *)&kp->name[name_skip];
  406. pattr->mattr.attr.owner = mk->mod;
  407. pattr->mattr.attr.mode = kp->perm;
  408. *(gattr++) = &(pattr++)->mattr.attr;
  409. }
  410. }
  411. *gattr = NULL;
  412. if ((err = sysfs_create_group(&mk->kobj, &mp->grp))) {
  413. kfree(mp);
  414. return ERR_PTR(err);
  415. }
  416. return mp;
  417. }
  418. #ifdef CONFIG_MODULES
  419. /*
  420. * module_param_sysfs_setup - setup sysfs support for one module
  421. * @mod: module
  422. * @kparam: module parameters (array)
  423. * @num_params: number of module parameters
  424. *
  425. * Adds sysfs entries for module parameters, and creates a link from
  426. * /sys/module/[mod->name]/parameters to /sys/parameters/[mod->name]/
  427. */
  428. int module_param_sysfs_setup(struct module *mod,
  429. struct kernel_param *kparam,
  430. unsigned int num_params)
  431. {
  432. struct module_param_attrs *mp;
  433. mp = param_sysfs_setup(&mod->mkobj, kparam, num_params, 0);
  434. if (IS_ERR(mp))
  435. return PTR_ERR(mp);
  436. mod->param_attrs = mp;
  437. return 0;
  438. }
  439. /*
  440. * module_param_sysfs_remove - remove sysfs support for one module
  441. * @mod: module
  442. *
  443. * Remove sysfs entries for module parameters and the corresponding
  444. * kobject.
  445. */
  446. void module_param_sysfs_remove(struct module *mod)
  447. {
  448. if (mod->param_attrs) {
  449. sysfs_remove_group(&mod->mkobj.kobj,
  450. &mod->param_attrs->grp);
  451. /* We are positive that no one is using any param
  452. * attrs at this point. Deallocate immediately. */
  453. kfree(mod->param_attrs);
  454. mod->param_attrs = NULL;
  455. }
  456. }
  457. #endif
  458. /*
  459. * kernel_param_sysfs_setup - wrapper for built-in params support
  460. */
  461. static void __init kernel_param_sysfs_setup(const char *name,
  462. struct kernel_param *kparam,
  463. unsigned int num_params,
  464. unsigned int name_skip)
  465. {
  466. struct module_kobject *mk;
  467. mk = kmalloc(sizeof(struct module_kobject), GFP_KERNEL);
  468. memset(mk, 0, sizeof(struct module_kobject));
  469. mk->mod = THIS_MODULE;
  470. kobj_set_kset_s(mk, module_subsys);
  471. kobject_set_name(&mk->kobj, name);
  472. kobject_register(&mk->kobj);
  473. /* no need to keep the kobject if no parameter is exported */
  474. if (!param_sysfs_setup(mk, kparam, num_params, name_skip)) {
  475. kobject_unregister(&mk->kobj);
  476. kfree(mk);
  477. }
  478. }
  479. /*
  480. * param_sysfs_builtin - add contents in /sys/parameters for built-in modules
  481. *
  482. * Add module_parameters to sysfs for "modules" built into the kernel.
  483. *
  484. * The "module" name (KBUILD_MODNAME) is stored before a dot, the
  485. * "parameter" name is stored behind a dot in kernel_param->name. So,
  486. * extract the "module" name for all built-in kernel_param-eters,
  487. * and for all who have the same, call kernel_param_sysfs_setup.
  488. */
  489. static void __init param_sysfs_builtin(void)
  490. {
  491. struct kernel_param *kp, *kp_begin = NULL;
  492. unsigned int i, name_len, count = 0;
  493. char modname[MAX_KBUILD_MODNAME + 1] = "";
  494. for (i=0; i < __stop___param - __start___param; i++) {
  495. char *dot;
  496. kp = &__start___param[i];
  497. /* We do not handle args without periods. */
  498. dot = memchr(kp->name, '.', MAX_KBUILD_MODNAME);
  499. if (!dot) {
  500. DEBUGP("couldn't find period in %s\n", kp->name);
  501. continue;
  502. }
  503. name_len = dot - kp->name;
  504. /* new kbuild_modname? */
  505. if (strlen(modname) != name_len
  506. || strncmp(modname, kp->name, name_len) != 0) {
  507. /* add a new kobject for previous kernel_params. */
  508. if (count)
  509. kernel_param_sysfs_setup(modname,
  510. kp_begin,
  511. count,
  512. strlen(modname)+1);
  513. strncpy(modname, kp->name, name_len);
  514. modname[name_len] = '\0';
  515. count = 0;
  516. kp_begin = kp;
  517. }
  518. count++;
  519. }
  520. /* last kernel_params need to be registered as well */
  521. if (count)
  522. kernel_param_sysfs_setup(modname, kp_begin, count,
  523. strlen(modname)+1);
  524. }
  525. /* module-related sysfs stuff */
  526. #ifdef CONFIG_MODULES
  527. #define to_module_attr(n) container_of(n, struct module_attribute, attr);
  528. #define to_module_kobject(n) container_of(n, struct module_kobject, kobj);
  529. static ssize_t module_attr_show(struct kobject *kobj,
  530. struct attribute *attr,
  531. char *buf)
  532. {
  533. struct module_attribute *attribute;
  534. struct module_kobject *mk;
  535. int ret;
  536. attribute = to_module_attr(attr);
  537. mk = to_module_kobject(kobj);
  538. if (!attribute->show)
  539. return -EIO;
  540. if (!try_module_get(mk->mod))
  541. return -ENODEV;
  542. ret = attribute->show(attribute, mk->mod, buf);
  543. module_put(mk->mod);
  544. return ret;
  545. }
  546. static ssize_t module_attr_store(struct kobject *kobj,
  547. struct attribute *attr,
  548. const char *buf, size_t len)
  549. {
  550. struct module_attribute *attribute;
  551. struct module_kobject *mk;
  552. int ret;
  553. attribute = to_module_attr(attr);
  554. mk = to_module_kobject(kobj);
  555. if (!attribute->store)
  556. return -EIO;
  557. if (!try_module_get(mk->mod))
  558. return -ENODEV;
  559. ret = attribute->store(attribute, mk->mod, buf, len);
  560. module_put(mk->mod);
  561. return ret;
  562. }
  563. static struct sysfs_ops module_sysfs_ops = {
  564. .show = module_attr_show,
  565. .store = module_attr_store,
  566. };
  567. #else
  568. static struct sysfs_ops module_sysfs_ops = {
  569. .show = NULL,
  570. .store = NULL,
  571. };
  572. #endif
  573. static struct kobj_type module_ktype = {
  574. .sysfs_ops = &module_sysfs_ops,
  575. };
  576. decl_subsys(module, &module_ktype, NULL);
  577. /*
  578. * param_sysfs_init - wrapper for built-in params support
  579. */
  580. static int __init param_sysfs_init(void)
  581. {
  582. subsystem_register(&module_subsys);
  583. param_sysfs_builtin();
  584. return 0;
  585. }
  586. __initcall(param_sysfs_init);
  587. EXPORT_SYMBOL(param_set_byte);
  588. EXPORT_SYMBOL(param_get_byte);
  589. EXPORT_SYMBOL(param_set_short);
  590. EXPORT_SYMBOL(param_get_short);
  591. EXPORT_SYMBOL(param_set_ushort);
  592. EXPORT_SYMBOL(param_get_ushort);
  593. EXPORT_SYMBOL(param_set_int);
  594. EXPORT_SYMBOL(param_get_int);
  595. EXPORT_SYMBOL(param_set_uint);
  596. EXPORT_SYMBOL(param_get_uint);
  597. EXPORT_SYMBOL(param_set_long);
  598. EXPORT_SYMBOL(param_get_long);
  599. EXPORT_SYMBOL(param_set_ulong);
  600. EXPORT_SYMBOL(param_get_ulong);
  601. EXPORT_SYMBOL(param_set_charp);
  602. EXPORT_SYMBOL(param_get_charp);
  603. EXPORT_SYMBOL(param_set_bool);
  604. EXPORT_SYMBOL(param_get_bool);
  605. EXPORT_SYMBOL(param_set_invbool);
  606. EXPORT_SYMBOL(param_get_invbool);
  607. EXPORT_SYMBOL(param_array_set);
  608. EXPORT_SYMBOL(param_array_get);
  609. EXPORT_SYMBOL(param_set_copystring);
  610. EXPORT_SYMBOL(param_get_string);