> So, I want to know how I can "automagically" set the device options,
> every time a user kldload's the device driver.

If you want to support this mode of operation, you really don't have a 
lot of options right now.  This is, in one fashion at least, my fault.  
Sorry.  8(

I would be inclined, given the way things currently are, to create a 
sysctl in your driver, and then hang most of your attach routine off the 
sysctl write handler.  ie.  you actually perform the "real" attach when 
the sysctl is written (and then disable this so re-writing it doesn't do 
it again...)

> Is there some equivalent way of handling device driver option settings
> in FreeBSD?  I would prefer an "automatic" way of having the
> device options set, similar in function to the way you can set
> options for your ethernet card with the ifconfig command - so
> that once you define, for example, your ifconfig command and
> put it in your rc file, you just automatically bring things up
> the desired way.  Any suggestions?  (For FreeBSD 4.x)

Well, teaching kldload about module parameters would make it into 4.1, if 
that's good enough.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime.             \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to