From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Weinberger Date: Wed, 05 Nov 2014 11:18:40 +0000 Subject: Re: How to access Linux Kernel environment Variables ? Message-Id: <545A0790.2050302@nod.at> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: santosh nayak Cc: linux-kernel , "kernel-janitors@vger.kernel.org" Am 05.11.2014 um 11:56 schrieb santosh nayak: > Thanks Richard for your response. > > Is there any system call in Linux which can access and set variables > in /proc/cmdline ? (Similar to kenv() in FreeBSD which can access and > set variables in /boot/loader.conf). No. > I would like to use that system call in linux C code, the way I am > using kenv() in freeBSD environment. Create a wrapper function which behaves like kenv(). Should be doable in a few lines of code. Thanks, //richard