[Pvfs2-developers] Initializing a BMI method

Scott Atchley atchley at myri.com
Thu Sep 21 10:19:05 EDT 2006


Hi all,

If I use a URI of mx://hostname:board:endpoint for each peer, I am  
wondering how the local bmi_mx gets its own name (in order to know  
which NIC to use and which MX endpoint).

Looking through bmi.c, activate_method() calls  
BMI_meth_method_addr_lookup(listen_addr) before calling  
BMI_meth_initialize(). The function activate_method() is called from  
BMI_initialize() which indicates that listen_addr is "a comma  
separated list of addresses to listen on for each method." Should I  
assume that the following will happen to startup bmi_mx:

new_addr = BMI_meth_method_addr_lookup("mx:// 
myhostname:myboard:myport");
...
BMI_meth_initialize(new_addr, ...)

Is this a correct assumption for the method_addr_lookup() and order  
of operations?

If so, then my method_addr_lookup() function has to check if bmi_mx  
has been initialized before using any lists, locks, etc., no?

Thanks,

Scott


More information about the Pvfs2-developers mailing list