Rate This Document
Findability
Accuracy
Completeness
Readability

Initialization

Function

Initializes the ocf module. This interface processes requests synchronously.

Implementation Method

int ocf_init(struct ocf_config *cfg);

Parameters

Parameter

Data Type

Input/Output

Description

cfg

struct ocf_config *

Input

Refer to Structures.

Return Values

STATE_SUCCESS: The initialization is successful.

STATE_PARAM_INVALID: The internal parameters of cfg are invalid. For example, cache_line_size is not in a supported type.

STATE_FAIL: ocf fails to be initialized. For example, ocf has been initialized before, or the ocf context or cache fails to be initialized.