Rate This Document
Findability
Accuracy
Completeness
Readability

Polling

Function

Triggers the callback of a completed request. The interface type is subject to the type of the callback.

Implementation Method

int ocf_poll(uint32_t io_worker_id, uint32_t max_num);

Parameters

Parameter

Data Type

Input/Output

Description

io_worker_id

uint32_t

Input

io_worker ID.

max_num

uint32_t

Input

Maximum number of request results that can be processed each time.

Return Values

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

STATE_OCF_UNAVAILABLE: ocf is unavailable.

STATE_PARAM_INVALID: The value of io_worker_id is invalid.