#[no_mangle]
pub extern "C" fn xila_memory_flush_data_cache()
Expand description
Flushes the data cache.
This function ensures that all pending write operations in the data cache are written to main memory. This is important for cache coherency in multi-core systems or when interfacing with DMA controllers.
§Safety
This function is safe to call at any time, but may have performance implications as it forces cache synchronization.
§Examples
// After writing data that will be accessed by DMA
memcpy(dma_buffer, data, size);
xila_memory_flush_data_cache();
start_dma_transfer(dma_buffer, size);