Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754727AbaKELSr (ORCPT ); Wed, 5 Nov 2014 06:18:47 -0500 Received: from a.ns.miles-group.at ([95.130.255.143]:65276 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754035AbaKELSn (ORCPT ); Wed, 5 Nov 2014 06:18:43 -0500 Message-ID: <545A0790.2050302@nod.at> Date: Wed, 05 Nov 2014 12:18:40 +0100 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: santosh nayak CC: linux-kernel , "kernel-janitors@vger.kernel.org" Subject: Re: How to access Linux Kernel environment Variables ? References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 -- 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/