Function clear_cache

Source
pub unsafe fn clear_cache<T>(start: *const T, end: *const T) -> bool
Expand description

Flush CPU’s instruction cache at given range.

Return false if the cache is not successfully cleared.

§Safety

It seems that this function should be safe. However, the complexity of certain instructions and syscalls make it difficult to guarantee that this function is totally safe.