/* searches the module list for function name and returns
* a pointer to the "name" function record union or 0 if not found
* sets also *mod_if_ver to the module interface version (needed to know
* which member of the union should be accessed v0 or v1)
* mod==0 is a wildcard matching all modules
* flags parameter is OR value of all flags that must match
*/

return init_mod_child(modules, rank);
}
/* recursive module initialization; (recursion is used to
process the module linear list in the same order in
which modules are loaded in config file
*/
static int init_mod( struct sr_module* m )
{
if (m) {
/* iterate through the list; if error occurs,
propagate it up the stack
*/
if (init_mod(m->next)!=0) return -1;