Rate This Document
Findability
Accuracy
Completeness
Readability

Query Request Submission

Function

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

Request type: Query whether all data in the specified region range is hit in the cache.

Implementation Method

int ocf_lookup(struct req_context *cxt);

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.