Rate This Document
Findability
Accuracy
Completeness
Readability

Region Cache Removal

Function

Clears the cached region data when the region is removed. This interface processes requests asynchronously.

Implementation Method

int ocf_remove_region(uint32_t slot_id, uint32_t region_id);

Parameters

Parameter (Optional)

Data Type

Input/Output

Description

slot_id

uint32_t

Input

Slot ID, which is globally unique.

region_id

uint32_t

Input

Region ID, which is globally unique.

Return Values

STATE_SUCCESS: The data is cleared successfully.

STATE_OCF_UNAVAILABLE: ocf is unavailable.

STATE_MEM_ALLOC_ERR: Memory allocation failed.