Re: User/kernelspace stuff to set/get kernel variables

From: H. Peter Anvin (
Date: Thu Dec 13 2001 - 15:34:49 EST

Followup to: <>
By author: DevilKin <>
In newsgroup:
> Hello
> I've been looking on the web, and couldn't really find what i would want...
> Basically: is it possible to - one way or another - set variables at
> kernel boot and read those using userspace utilities?

The entire kernel command line is quoted verbatim in /proc/cmdline.

Additionally, items of the form foo=bar that are not recognized by the
kernel become environment variables to init, and items not of that
form *sometimes* become command-line options to init...


<> at work, <> in private!
"Unix gives you enough rope to shoot yourself in the foot."	<>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:27 EST