static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
-/*
- * Read an int from an option string; if available accept a subsequent
- * comma as well.
- *
- * Return values:
- * 0 : no int in string
- * 1 : int found, no subsequent comma
- * 2 : int found including a subsequent comma
- */
-int get_option(char **str, int *pint)
-{
- char *cur = *str;
-
- if (!cur || !(*cur)) return 0;
- *pint = simple_strtol(cur,str,0);
- if (cur==*str) return 0;
- if (**str==',') {
- (*str)++;
- return 2;
- }
-
- return 1;
-}
-
-char *get_options(char *str, int nints, int *ints)
-{
- int res,i=1;
-
- while (i<nints) {
- res = get_option(&str, ints+i);
- if (res==0) break;
- i++;
- if (res==1) break;
- }
- ints[0] = i-1;
- return(str);
-}
-
static int __init profile_setup(char *str)
{
int par;
EXPORT_SYMBOL(get_module_symbol);
EXPORT_SYMBOL(try_inc_mod_count);
#endif
-EXPORT_SYMBOL(get_option);
-EXPORT_SYMBOL(get_options);
/* process memory management */
EXPORT_SYMBOL(do_mmap_pgoff);