[Devel] rank == PROC_FIFO
Juha Heinanen
jh at tutpro.com
Sun Oct 8 13:11:49 CEST 2006
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