[Devel] rank == PROC_FIFO
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Oct 10 11:21:43 CEST 2006
Hi Juha,
I'm already working on the second solution as it is more general; to
simply things even more, the MI functions will be automatically exported
by modules by declaring them in the module_export structure (similar to
script functions and module parameters).
today or tomorrow I will commit it on CVS.
regards,
bogdan
Juha Heinanen wrote:
>Bogdan-Andrei Iancu writes:
>
> > There are 2 solutions for this:
> > - the MI function should check if all resources are available and if
> > not to allocate/open them -> no need of init function, the init being
> > done at first run.
> > - place in module_export structure an init_mi function to be called
> > only in the processes running the mi functions.
>
>in case of domain module, i think i could just test in
>reload_domain_table function if db_handle is zero and if so, call
>domain_db_init.
>
>so the first solution would work for domain module. the second solution
>sounds more general though. like in permissions module, more complex
>stuff is done in PROC_FIFO (see
>permissions/address.cinit_child_addresses).
>
>do whatever you feel best.
>
>-- juha
>
>
More information about the Devel
mailing list