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

Sam Leffler sam at freebsd.org
Thu Jun 4 03:47:17 UTC 2009


David Somayajulu wrote:
> Larry Maloney wrote:
>   
>> 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.
>>     

loader(8) allows you to set tunable parameters before boot; this is 
equivalent to linux-style module parameters (mostly).  Unfortunately I 
don't see anything in the man pages that documents them; check 
sys/sys/kernel.h for the details and/or loader(8).

    Sam



More information about the freebsd-drivers mailing list