Alex wrote:
> Hi, > > static int __init debug_kernel(char *str) > { > if (*str) > return 0; > console_loglevel = 10; > return 1; > } > > static int __init quiet_kernel(char *str) > { > if (*str) > return 0; > console_loglevel = 4; > return 1; > } > > __setup("debug", debug_kernel); > __setup("quiet", quiet_kernel);
These are handlers for kernel parameters.
to invoke these functions, pass "debug" and "quiet" respectively from the boot loader as kernel command line.
If you pass both, I think the latter will take precedence. Please correct me if I am wrong.
HTH, om.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/