Rate This Document
Findability
Accuracy
Completeness
Readability

Invalidation Request Submission

Function

Submits invalidation requests to the ocf queue. This interface processes requests asynchronously.

Request type: Remove data in the specified region range from the cache.

Implementation Method

int ocf_invalid(struct req_context *ctx);

Parameters

Parameter

Data Type

Input/Output

Description

ctx

struct req_context *

Input

Refer to Structures.

Return Values

STATE_SUCCESS: The requests are successfully submitted to the ocf queue.

STATE_OCF_UNAVAILABLE: ocf is unavailable.

STATE_PARAM_INVALID: The ctx pointer is null, or its internal parameters are invalid.

STATE_CORE_NOT_EXIST: The core corresponding to the slot does not exist. The request fails to be submitted.

STATE_MEM_ALLOC_ERR: Memory allocation failed.