Skip to content

Instantly share code, notes, and snippets.

@mgalgs
Created May 10, 2013 21:16
Show Gist options
  • Save mgalgs/5557480 to your computer and use it in GitHub Desktop.
Save mgalgs/5557480 to your computer and use it in GitHub Desktop.
static void __init do_initcall_level(int level)
{
extern const struct kernel_param __start___param[], __stop___param[];
initcall_t *fn;
strcpy(static_command_line, saved_command_line);
parse_args(initcall_level_names[level],
static_command_line, __start___param,
__stop___param - __start___param,
level, level,
repair_env_string);
for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++)
do_one_initcall(*fn);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment