Archie Cobbs wrote:
>
> Warner Losh writes:
> > In message <[EMAIL PROTECTED]> "Gary T. Corcoran" writes:
> > : I was wondering if you (or anyone on this list) has had time
> > : to add module parameters to kldload? (and before anyone suggests
> > : it, sorry, but I am barely able to squeeze out enough time to
> > : even work on this unofficial driver, I can't work on kldload)
> >
> > You can use the hint mechanism that we've developed for other things.
>
> Another possibility is the netgraph binary <-> ASCII conversion stuff:
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_parse.h?rev=1.3
Are you suggesting that these routines could be used to
easily add parameters to kldload? (hint, hint) <grin>
No, I know it's not that easy. We need to be able to do things
like have "TransmissionMode=4" on the kldload command line, and
have that parse the decimal value 4, and then go into the module
and set the value of the TransmissionMode variable to actually be
4 immediately after loading the module into memory, before any of
its subroutines are called. This is what the Linux module loader
allows, and it's extremely useful...
Gary
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message