Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2006 09:13:09 -0700
From:      John-Mark Gurney <gurney_j@resnet.uoregon.edu>
To:        sivakumar.subramani@wipro.com
Cc:        freebsd-net@FreeBSD.org
Subject:   Re: Reading a configuration file from a driver code during intialization.
Message-ID:  <20060914161309.GC9421@funkthat.com>
In-Reply-To: <956E7FA2615F3B4595FC5F22870A7221067206@blr-m3-msg.wipro.com>
References:  <956E7FA2615F3B4595FC5F22870A7221067206@blr-m3-msg.wipro.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060914161309.GC9421>