Store PP config params in cache superblock.
It allows to modify and retrieve particular PP params event if it isn't active and store values between cache stop and load. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -9,15 +9,18 @@
|
||||
#include "ocf/ocf.h"
|
||||
#include "../../ocf_request.h"
|
||||
#include "../promotion.h"
|
||||
#include "nhit_structs.h"
|
||||
|
||||
void nhit_setup(ocf_cache_t cache);
|
||||
|
||||
ocf_error_t nhit_init(ocf_cache_t cache, ocf_promotion_policy_t policy);
|
||||
|
||||
void nhit_deinit(ocf_promotion_policy_t policy);
|
||||
|
||||
ocf_error_t nhit_set_param(ocf_promotion_policy_t policy, uint8_t param_id,
|
||||
ocf_error_t nhit_set_param(ocf_cache_t cache, uint8_t param_id,
|
||||
uint32_t param_value);
|
||||
|
||||
ocf_error_t nhit_get_param(ocf_promotion_policy_t policy, uint8_t param_id,
|
||||
ocf_error_t nhit_get_param(ocf_cache_t cache, uint8_t param_id,
|
||||
uint32_t *param_value);
|
||||
|
||||
void nhit_req_purge(ocf_promotion_policy_t policy,
|
||||
|
Reference in New Issue
Block a user