magma

Function magma_buffer_clean_cache

Source
pub unsafe extern "C" fn magma_buffer_clean_cache(
    buffer: magma_buffer_t,
    offset: u64,
    size: u64,
    operation: magma_cache_operation_t,
) -> magma_status_t
Expand description

\brief Cleans, and optionally invalidates, the cache for the region of memory specified by the given buffer, offset, and size, and write the contents to ram. \param buffer A valid buffer. \param offset An offset into the buffer. Must be less than or equal to the buffer’s size. \param size Size of region to be cleaned. Offset + size must be less than or equal to the buffer’s size. \param operation One of MAGMA_CACHE_OPERATION_CLEAN or MAGMA_CACHE_OPERATION_CLEAN_INVALIDATE.