Pages

2010-10-12

Linux: Adding a new boot argument to the Kernel

static unsigned int my_super_new_boot_argument = 1;
is_my_super_new_boot_argumennt(char *str)
{
  get_option(&str, &my_super_new_boot_argument);
  return 1;
}
/* Handle parameter "my_super_new_boot_argument=" */
__setup("my_super_new_boot_argument=",     is_my_super_new_boot_argumennt);
if (my_super_new_boot_argument
{
   /* ... */
}

No comments:

Post a Comment