How do I pass configuration parameters to a FreeBSD Device Driver ?

Volker volker at vwsoft.com
Thu Jun 4 11:35:34 UTC 2009


On 06/04/09 03:48, David Somayajulu wrote:
> Hi All,
> I would appreciate if you could let me know, how I can pass configuration parameters to a device driver, which can be processed during either probe() or attach() ? Is there a way to read them from a conf file of some sort ? Basically, I am interested in setting some tunable parameters during driver initialization, without needing to recompile the driver every time.
> 

David,

you may want to look up the kernel sources for TUNEABLE_XXX() macros.

Volker



More information about the freebsd-drivers mailing list