nhit promotion policy implementation
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
34
src/promotion/nhit/nhit.h
Normal file
34
src/promotion/nhit/nhit.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright(c) 2019 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#ifndef NHIT_PROMOTION_POLICY_H_
|
||||
#define NHIT_PROMOTION_POLICY_H_
|
||||
|
||||
#include "ocf/ocf.h"
|
||||
#include "../../ocf_request.h"
|
||||
#include "../promotion.h"
|
||||
|
||||
enum nhit_param {
|
||||
nhit_insertion_threshold,
|
||||
nhit_param_max
|
||||
};
|
||||
|
||||
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,
|
||||
uint64_t param_value);
|
||||
|
||||
ocf_error_t nhit_get_param(ocf_promotion_policy_t policy, uint8_t param_id,
|
||||
uint64_t *param_value);
|
||||
|
||||
void nhit_req_purge(ocf_promotion_policy_t policy,
|
||||
struct ocf_request *req);
|
||||
|
||||
bool nhit_req_should_promote(ocf_promotion_policy_t policy,
|
||||
struct ocf_request *req);
|
||||
|
||||
#endif /* NHIT_PROMOTION_POLICY_H_ */
|
Reference in New Issue
Block a user