From f8732b6394ed5804102d50f0ff56a5df3810436c Mon Sep 17 00:00:00 2001 From: Ali Mohammed <ali.mohammed@hpe.com> Date: Fri, 29 Oct 2021 13:54:57 +0200 Subject: [PATCH] find sources, i.e., app and local id, of required distributed cdo pieces --- include/maestro/i_pool_manager_registry.h | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/include/maestro/i_pool_manager_registry.h b/include/maestro/i_pool_manager_registry.h index 05780aa3..5b3ae049 100644 --- a/include/maestro/i_pool_manager_registry.h +++ b/include/maestro/i_pool_manager_registry.h @@ -324,6 +324,39 @@ mstro_pm_candidates_destroy(mstro_pm_candidates *candidates); + +/** Convert the mapping between two distributed layouts found by mmb_layout_compute_intersection + * to a list of candidates (apps, local cdo-ids, offsets, lengths) that satisfy + * the requested distribution from a different source distribution. + * Return MSTRO_OK on success. +**/ +static inline +mstro_status +mstro_pm__mmbLayoutIntersecton_to_candidates( + mmbLayoutIntersection *intersection, + size_t dst_index, + mmbLayout *src_layout, + struct per_app_cdo_entries *app_to_attributes_table, + mstro_pm_candidates **candidates); + +/** Find an offered distributed cdo with the required exact layout + * (including index),i.e., 1:1 mapping +**/ +static inline +mstro_status +mstro_pm__find_cdo_with_layout( + struct per_app_cdo_entries *app_to_attributes_table, + mmbLayout *s_layout, + struct per_app_cdo_entries **app, + uint64_t *local_id); + + +/** Destroy mstro_pm_candidates **/ +static inline +mstro_status +mstro_pm_candidates_destroy(mstro_pm_candidates *candidates); + + /**@} (end of group MSTRO_I_PM_Registry) */ /**@} (end of group MSTRO_Internal) */ -- GitLab