hbUCPMallocCached

int32_t hbUCPMallocCached(hbUCPSysMem *mem, uint64_t size, int32_t deviceId);

Apply the cached system memory.

  • Parameter

    • [out] mem Memory pointer.
    • [in] size Size of the requested memory.
    • [in] deviceId Reserved parameter.
  • Return Value

    • If the return value is 0, the API is executed successfully, otherwise the execution fails.