Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Mike Smith
> Juha Nurmela wrote: > > > > > > On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > > > > > Actually... Loader passes a string. It seems the kldcode is passing > > > argv[]. Juha, you sure you have they both working the same way (from > > > a module's perspective)? > > > > It's splatted together, b

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Juha Nurmela
On Tue, 3 Aug 1999, Peter Wemm wrote: > Don't forget, there are zero or more modules per file. Which one gets the > arguments? Coda (for example) is structured so that it has two modules, one > device (codadev) and one vfs (coda). Yes, the naming 'module_get_file_argstr()' had the _file_ for

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Mike Smith
> Juha Nurmela wrote: > > > > > > On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > > > > > Actually... Loader passes a string. It seems the kldcode is passing > > > argv[]. Juha, you sure you have they both working the same way (from > > > a module's perspective)? > > > > It's splatted together,

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Peter Wemm
"Daniel C. Sobral" wrote: > Peter Wemm wrote: > > > > Don't forget, there are zero or more modules per file. Which one gets the > > arguments? Coda (for example) is structured so that it has two modules, on e > > device (codadev) and one vfs (coda). > > It seems to me that the one who gets

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Juha Nurmela
On Tue, 3 Aug 1999, Peter Wemm wrote: > Don't forget, there are zero or more modules per file. Which one gets the > arguments? Coda (for example) is structured so that it has two modules, one > device (codadev) and one vfs (coda). Yes, the naming 'module_get_file_argstr()' had the _file_ for

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Daniel C. Sobral
Peter Wemm wrote: > > Don't forget, there are zero or more modules per file. Which one gets the > arguments? Coda (for example) is structured so that it has two modules, one > device (codadev) and one vfs (coda). It seems to me that the one who gets the arguments is the one who searches for it.

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Peter Wemm
Juha Nurmela wrote: > > > On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > > > Actually... Loader passes a string. It seems the kldcode is passing > > argv[]. Juha, you sure you have they both working the same way (from > > a module's perspective)? > > It's splatted together, by just putting ' ' b

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Daniel C. Sobral
"Daniel C. Sobral" wrote: > > assuming we are making it at all, the less pain. It provides a way > of getting parameters that is compatible with what is already > possible with loader (ie, the module need not differentiate between > it's method of loading). The code is working and ready. Actuall

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Juha Nurmela
On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > Actually... Loader passes a string. It seems the kldcode is passing > argv[]. Juha, you sure you have they both working the same way (from > a module's perspective)? It's splatted together, by just putting ' ' between words, somewhere in there. Sea

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Peter Wemm
"Daniel C. Sobral" wrote: > Peter Wemm wrote: > > > > Don't forget, there are zero or more modules per file. Which one gets the > > arguments? Coda (for example) is structured so that it has two modules, on e > > device (codadev) and one vfs (coda). > > It seems to me that the one who gets

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Daniel C. Sobral
Peter Wemm wrote: > > Don't forget, there are zero or more modules per file. Which one gets the > arguments? Coda (for example) is structured so that it has two modules, one > device (codadev) and one vfs (coda). It seems to me that the one who gets the arguments is the one who searches for it

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Juha Nurmela
On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > Actually... Loader passes a string. It seems the kldcode is passing > argv[]. Juha, you sure you have they both working the same way (from > a module's perspective)? It's splatted together, by just putting ' ' between words, somewhere in there. Sear

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Peter Wemm
Juha Nurmela wrote: > > > On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > > > Actually... Loader passes a string. It seems the kldcode is passing > > argv[]. Juha, you sure you have they both working the same way (from > > a module's perspective)? > > It's splatted together, by just putting ' '

Re: Proposing argv for klds and preloaded modules

1999-08-03 Thread Daniel C. Sobral
"Daniel C. Sobral" wrote: > > assuming we are making it at all, the less pain. It provides a way > of getting parameters that is compatible with what is already > possible with loader (ie, the module need not differentiate between > it's method of loading). The code is working and ready. Actually

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Doug Rabson
On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > Warner Losh wrote: > > > > In message <37a5c680.3ca1d...@newsguy.com> "Daniel C. Sobral" writes: > > : Modules are not just drivers. Forget about drivers, and try again. > > : :-) > > > > But the generic mechanism extends beyond just drivers :-) > >

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Doug Rabson
On Tue, 3 Aug 1999, Daniel C. Sobral wrote: > Warner Losh wrote: > > > > In message <[EMAIL PROTECTED]> "Daniel C. Sobral" writes: > > : Modules are not just drivers. Forget about drivers, and try again. > > : :-) > > > > But the generic mechanism extends beyond just drivers :-) > > Ah, I reca

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Daniel C. Sobral
Warner Losh wrote: > > In message <37a5c680.3ca1d...@newsguy.com> "Daniel C. Sobral" writes: > : Modules are not just drivers. Forget about drivers, and try again. > : :-) > > But the generic mechanism extends beyond just drivers :-) Ah, I recall now. Something similar to the way X works, with a

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Warner Losh
In message <37a5c680.3ca1d...@newsguy.com> "Daniel C. Sobral" writes: : Modules are not just drivers. Forget about drivers, and try again. : :-) But the generic mechanism extends beyond just drivers :-) Warner To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers"

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Daniel C. Sobral
Warner Losh wrote: > > In message <[EMAIL PROTECTED]> "Daniel C. Sobral" writes: > : Modules are not just drivers. Forget about drivers, and try again. > : :-) > > But the generic mechanism extends beyond just drivers :-) Ah, I recall now. Something similar to the way X works, with all the info

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Daniel C. Sobral
Warner Losh wrote: > > In message > Juha Nurmela writes: > : Yes, but (this might be a trademark ;) commonly the arguments would > : be used during the sysinit->attach, and at that time sysctl has not yet > : been able to change anything. Use of sysctl would require a sidestep > : from attach an

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Warner Losh
In message <[EMAIL PROTECTED]> "Daniel C. Sobral" writes: : Modules are not just drivers. Forget about drivers, and try again. : :-) But the generic mechanism extends beyond just drivers :-) Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Daniel C. Sobral
Warner Losh wrote: > > In message <[EMAIL PROTECTED]> Juha >Nurmela writes: > : Yes, but (this might be a trademark ;) commonly the arguments would > : be used during the sysinit->attach, and at that time sysctl has not yet > : been able to change anything. Use of sysctl would require a sidestep

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Boris Popov
On Sun, 1 Aug 1999, Chris Costello wrote: > On Sun, Aug 01, 1999, Juha Nurmela wrote: > > > > Sometimes it would be handy to pass a commandline > > to a kld, preloaded modules already support > > arguments. kldload(2) unfortunately has only > > the pathname.ko argument. > >Is this really a pr

Re: Proposing argv for klds and preloaded modules

1999-08-02 Thread Boris Popov
On Sun, 1 Aug 1999, Chris Costello wrote: > On Sun, Aug 01, 1999, Juha Nurmela wrote: > > > > Sometimes it would be handy to pass a commandline > > to a kld, preloaded modules already support > > arguments. kldload(2) unfortunately has only > > the pathname.ko argument. > >Is this really a p

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Warner Losh
In message Juha Nurmela writes: : Yes, but (this might be a trademark ;) commonly the arguments would : be used during the sysinit->attach, and at that time sysctl has not yet : been able to change anything. Use of sysctl would require a sidestep : from attach and later continuation with a sysctl

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Warner Losh
In message <[EMAIL PROTECTED]> Juha Nurmela writes: : Yes, but (this might be a trademark ;) commonly the arguments would : be used during the sysinit->attach, and at that time sysctl has not yet : been able to change anything. Use of sysctl would require a sidestep : from attach and later contin

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Juha Nurmela
On Sun, 1 Aug 1999, Chris Costello wrote: > On Sun, Aug 01, 1999, Juha Nurmela wrote: > > Sometimes it would be handy to pass a commandline > > to a kld, preloaded modules already support > > arguments. kldload(2) unfortunately has only > > the pathname.ko argument. > >Is this really a prob

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Chris Costello
On Sun, Aug 01, 1999, Juha Nurmela wrote: > > Hello. > > Sometimes it would be handy to pass a commandline > to a kld, preloaded modules already support > arguments. kldload(2) unfortunately has only > the pathname.ko argument. Is this really a problem? Can the administrator not use sysctl i

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Juha Nurmela
On Sun, 1 Aug 1999, Chris Costello wrote: > On Sun, Aug 01, 1999, Juha Nurmela wrote: > > Sometimes it would be handy to pass a commandline > > to a kld, preloaded modules already support > > arguments. kldload(2) unfortunately has only > > the pathname.ko argument. > >Is this really a pro

Re: Proposing argv for klds and preloaded modules

1999-08-01 Thread Chris Costello
On Sun, Aug 01, 1999, Juha Nurmela wrote: > > Hello. > > Sometimes it would be handy to pass a commandline > to a kld, preloaded modules already support > arguments. kldload(2) unfortunately has only > the pathname.ko argument. Is this really a problem? Can the administrator not use sysctl