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

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Dec 13 2001 - 15:34:49 EST


Followup to: <20011213155532Z284289-18284+114@vger.kernel.org>
By author: DevilKin <devilkin@gmx.net>
In newsgroup: linux.dev.kernel
>
> 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...

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



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