From: Douglas McNaught <doug@mcnaught.org>
To: "Guillermo López Alejos" <glalejos@gmail.com>
Cc: Linux Kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: Environment variables inside the kernel?
Date: Thu, 18 Aug 2005 12:37:14 -0400 [thread overview]
Message-ID: <m2ek8r5hhh.fsf@Douglas-McNaughts-Powerbook.local> (raw)
In-Reply-To: <4fec73ca050818084467f04c31@mail.gmail.com> (Guillermo =?iso-8859-1?Q?L=F3pez?= Alejos's message of "Thu, 18 Aug 2005 17:44:19 +0200")
Guillermo López Alejos <glalejos@gmail.com> writes:
> Hi,
>
> I have a piece of code which uses environment variables. I have been
> told that it is not going to work in kernel space because the concept
> of environment is not applicable inside the kernel.
Correct.
> I belive that, but I need to demonstrate it. I do not know how to
> proof this, perhaps referring to a solid reference about Linux design
> that points to the idea that it has no sense to use environment
> variables in kernel space.
Environment variables are a part of the API that Unix supplies to
userspace programs. The kernel is not a userspace program, and as far
as I know it doesn't even do most of the work of maintaining the
environment for a process--that's done by the C library and the
userspace program loader.
> Do anyone knows about the existence of such document?
No, probably because it's such an obvious concept. You might get hold
of one of the several books on Linux kernel programming and see if
they mention it.
If someone is insisting you use environment varaiables in kernel code,
challenge them to show you where they are implemented in the kernel. :)
-Doug
next prev parent reply other threads:[~2005-08-18 16:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-18 15:44 Guillermo López Alejos
2005-08-18 16:02 ` linux-os (Dick Johnson)
2005-08-18 16:03 ` jerome lacoste
2005-08-18 16:12 ` Ingo Oeser
2005-08-18 17:27 ` Christoph Lameter
2005-08-18 16:37 ` Douglas McNaught [this message]
2005-08-18 18:23 ` Linh Dang
2005-08-18 18:48 ` Guillermo López Alejos
2005-08-18 19:43 ` Emilio Jesús Gallego Arias
2005-08-21 22:12 ` Eric W. Biederman
2005-08-22 9:05 ` Guillermo López Alejos
2005-08-22 9:18 ` Eric W. Biederman
2005-08-25 8:59 ` Guillermo López Alejos
2005-08-22 20:38 ` Helge Hafting
2005-08-18 23:12 ` Alan Cox
2005-08-18 22:55 ` Peter M. Groen
2005-08-19 10:28 ` Guillermo López Alejos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ek8r5hhh.fsf@Douglas-McNaughts-Powerbook.local \
--to=doug@mcnaught.org \
--cc=glalejos@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®