Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754436AbaKEJWJ (ORCPT ); Wed, 5 Nov 2014 04:22:09 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:56995 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754291AbaKEJV7 (ORCPT ); Wed, 5 Nov 2014 04:21:59 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 5 Nov 2014 10:14:37 +0100 Message-ID: Subject: Re: How to access Linux Kernel environment Variables ? From: Richard Weinberger To: santosh prasad nayak Cc: linux-kernel , "kernel-janitors@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 5, 2014 at 9:03 AM, santosh prasad nayak wrote: > Hi all, > > Is there any system call in Linux which serve the purpose of "kenv()" > of FreeBSD ? > > > In FreeBSD: > ----------------- > Kernel environment variables are saved at "/boot/loader.conf" and > those variables can be accessed using "kenv()" system call in C > program. > ---------------- > > > Is there any similar functionality available in Linux kernel ? /proc/cmdline? -- 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/