From owner-freebsd-net@FreeBSD.ORG Thu Sep 14 16:13:15 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3A4016A417 for ; Thu, 14 Sep 2006 16:13:15 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id E760B43D67 for ; Thu, 14 Sep 2006 16:13:10 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (sbjjw7nbt3ty4qbb@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k8EGDAnI001130; Thu, 14 Sep 2006 09:13:10 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k8EGD9Du001129; Thu, 14 Sep 2006 09:13:09 -0700 (PDT) (envelope-from jmg) Date: Thu, 14 Sep 2006 09:13:09 -0700 From: John-Mark Gurney To: sivakumar.subramani@wipro.com Message-ID: <20060914161309.GC9421@funkthat.com> Mail-Followup-To: sivakumar.subramani@wipro.com, freebsd-net@FreeBSD.org References: <956E7FA2615F3B4595FC5F22870A7221067206@blr-m3-msg.wipro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <956E7FA2615F3B4595FC5F22870A7221067206@blr-m3-msg.wipro.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-net@FreeBSD.org Subject: Re: Reading a configuration file from a driver code during intialization. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 16:13:15 -0000 sivakumar.subramani@wipro.com wrote this message on Thu, Sep 14, 2006 at 12:16 +0530: > Is there is any other solution to the above problem? > > > > Actually I am looking for some thing similar to Module loadable > parameters in the Linux Device Driver. look at kenv... It lets you set arbitrary values and access them in the kernel... you can use the TUNABLE_* macros provided by sys/kernel.h to make accessing them easier... If the variables need to change at run time, look at SYSCTL... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."