Add OCL wrappers for promotion policy management

This commit is contained in:
Jan Musial
2019-09-10 16:26:07 +02:00
parent b9de71126b
commit 0810df2a0e
3 changed files with 92 additions and 1 deletions

View File

@@ -20,6 +20,16 @@ int cache_mngt_set_cleaning_param(ocf_cache_t cache, ocf_cleaning_t type,
int cache_mngt_get_cleaning_param(ocf_cache_t cache, ocf_cleaning_t type,
uint32_t param_id, uint32_t *param_value);
int cache_mngt_set_promotion_policy(ocf_cache_t cache, uint32_t type);
int cache_mngt_get_promotion_policy(ocf_cache_t cache, uint32_t *type);
int cache_mngt_set_promotion_param(ocf_cache_t cache, uint32_t param_id,
uint32_t param_value);
int cache_mngt_get_promotion_param(ocf_cache_t cache, uint32_t param_id,
uint32_t *param_value);
int cache_mngt_add_core_to_cache(const char *cache_name,
struct ocf_mngt_core_config *cfg,
struct kcas_insert_core *cmd_info);