Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-03 Thread John Baldwin
On Thursday, August 03, 2017 09:57:15 AM Andriy Gapon wrote: > On 02/08/2017 18:49, John Baldwin wrote: > > sysctl nodes are created explicitly via linker_file_register_sysctls, not > > via > > SYSINITs, so you can't order them with respect to other init functions. > > > > I think Andriy's sugges

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread Andriy Gapon
On 02/08/2017 18:49, John Baldwin wrote: > sysctl nodes are created explicitly via linker_file_register_sysctls, not via > SYSINITs, so you can't order them with respect to other init functions. > > I think Andriy's suggestion of doing sysctls "inside" sysinits (so they are > registered last and u

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread John Baldwin
On Wednesday, August 02, 2017 06:53:54 PM Hans Petter Selasky wrote: > On 08/02/17 17:49, John Baldwin wrote: > > On Wednesday, August 02, 2017 12:39:36 PM Hans Petter Selasky wrote: > >> On 08/02/17 12:13, Andriy Gapon wrote: > >>> > >>> As far as I understand a module initialization routine is ex

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread Hans Petter Selasky
On 08/02/17 17:49, John Baldwin wrote: On Wednesday, August 02, 2017 12:39:36 PM Hans Petter Selasky wrote: On 08/02/17 12:13, Andriy Gapon wrote: As far as I understand a module initialization routine is executed via the sysinit mechanism. Specifically, module_register_init is set up as the

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread Ian Lepore
On Wed, 2017-08-02 at 08:49 -0700, John Baldwin wrote: > On Wednesday, August 02, 2017 12:39:36 PM Hans Petter Selasky wrote: > > > > On 08/02/17 12:13, Andriy Gapon wrote: > > > > > > > > > As far as I understand a module initialization routine is > > > executed via the > > > sysinit mechanism.

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread John Baldwin
On Wednesday, August 02, 2017 12:39:36 PM Hans Petter Selasky wrote: > On 08/02/17 12:13, Andriy Gapon wrote: > > > > As far as I understand a module initialization routine is executed via the > > sysinit mechanism. Specifically, module_register_init is set up as the > > sysinit > > function for

Re: order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread Hans Petter Selasky
On 08/02/17 12:13, Andriy Gapon wrote: As far as I understand a module initialization routine is executed via the sysinit mechanism. Specifically, module_register_init is set up as the sysinit function for every module and it calls MOD_EVENT(mod, MOD_LOAD) to invoke the module event handler. I

order of executing MOD_LOAD and registering module sysctl-s

2017-08-02 Thread Andriy Gapon
As far as I understand a module initialization routine is executed via the sysinit mechanism. Specifically, module_register_init is set up as the sysinit function for every module and it calls MOD_EVENT(mod, MOD_LOAD) to invoke the module event handler. In linker_load_file() I see the following