lkml.org 
[lkml]   [2001]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: User/kernelspace stuff to set/get kernel variables
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.077 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site