http://www.linuxquestions.org/questions/linux-kernel-70/passing-a-custom-parameter-to-the-kernel-587787/

 

 

unsigned int my_param;
EXPORT_SYMBOL (my_param);
.
.
.
static int __init set_my_param(char *str)
{
    get_option(&str, &my_param);
    return 1;
}

__setup("my_param=", set_my_param);

+ Recent posts