Non-module parameters

Kevin D. Clark kclark at CetaceanNetworks.com
Fri Mar 19 17:14:00 EST 2004


Cole Tuininga writes:

> Here's a question for folks - there's a kernel option I turn on (support
> for a particular NIC) but I need to pass it parameters.  I'd like to
> compile the driver directly into the kernel so that I don't have to have
> modules support on at all.  How do I do this?  

I'd just modify the source of the existing module to have your desired
defaults.  Look for the relevant MODULE_PARM declarations in the
module's source code and adjust the associated variable's defaults
accordingly.

     static int foo_port = 0;      /* modify this... */
     MODULE_PARM(foo_port, "i");   /* ...and not this */

Regards,

--kevin
-- 
Kevin D. Clark (kclark at CetaceanNetworks.com)
ADVERTISEMENT:  On Sunday May 2nd, I'm riding my bicycle 100 miles
in the American Diabetes Association's Tour de Cure ride.  If you're
interested in sponsoring me, please send me email.




More information about the gnhlug-discuss mailing list