Hi!

How to create and remove bmi operations when sending or receiving messages and 
how to handle it in test function? AFAIK, it is necessary to create operation 
with bmi_alloc_method_op if send or receive completes non-immediately. then it 
must fill fields of operation structure and assign op->user_ptr to user_ptr 
passed to function and register operation by adding it to my method's operation 
list with op_list_add. then in test function it is necessary to search for 
operation corresponding to given id with id_gen_fast_lookup and if operation 
finished  remove it from operation list with op_list_remove and deallocate 
resources. but some functions that calling testcontext, e.g. 
bmi_thread_function, checks for callback that must be assigned to user_ptr 
returned by testcontext and it is looks like  it work if I assign op->user_ptr 
to user_ptr passed to test function.

Can anyone explain creation of operation, addition it to operation list, 
deletion it from op list and releasing resources used by this op in details and 
explain what to do with cancelled operations?

Thanks,
Mikhail Gilmendinov
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to