pub unsafe fn clear_cache(ptr: *const c_void, len: usize) -> Result<()>
Expand description

Flushes the instruction cache for a region of memory.

If the architecture does not require an instruction cache flush, this function does nothing.

Unsafe

It is necessary to call pipeline_flush_mt after this function if you are running in a multi-threaded environment.