我要评分
获取效率
正确性
完整性
易理解

Core Removal

Function

Releases ocf core resources corresponding to the slot that is migrated out or removed. Each ocf core corresponds to a unique slot. During release, ocf invalidates the mapping of the core in the cache to ensure that the slot cache in ocf is cleared. This interface processes requests asynchronously.

Implementation Method

int ocf_remove_core(uint32_t slot_id);

Parameters

Parameter

Data Type

Input/Output

Description

slot_id

uint32_t

Input

Slot ID, which is globally unique.

Return Values

STATE_SUCCESS: The ocf core is successfully removed.

STATE_OCF_UNAVAILABLE: ocf is unavailable. For example, ocf is not initialized or is being restored.

STATE_CORE_CREATING: The core corresponding to the slot is being created and cannot be removed.

STATE_MEM_ALLOC_ERR: The memory is insufficient or memory allocation failed.