void ofi_nd_fini(void) { if (ofi_nd_util_prov.info) { fi_freeinfo((void*)ofi_nd_util_prov.info); ofi_nd_util_prov.info = 0; } ofi_nd_shutdown(); nd_buf_fini_apply(); }
static int ofi_nd_fabric_close(fid_t fid) { struct nd_fabric *fabric; fabric = container_of(fid, struct nd_fabric, fid.fid); free(fabric); /* due to issues in cleanup NetworkDirect on library unload make clening here, on fabric close */ ofi_nd_shutdown(); return FI_SUCCESS; }