Reading a configuration file from a driver code during
intialization.
John-Mark Gurney
gurney_j at resnet.uoregon.edu
Thu Sep 14 09:13:15 PDT 2006
sivakumar.subramani at 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."
More information about the freebsd-net
mailing list