[][src]Crate ruspiro_cache

Raspberry Pi cache maintenance

If the caches are active on the Raspberry Pi than there might be specific cache operations needed to clean and invalidate the cache to ensure in cross core and/or ARM core to GPU communications the most recent data is seen.

Usage

use ruspiro_cache as cache;
 
fn demo() {
    cache::clean(); // clean the data cache
    cache::invalidate(); // invalidate the data cache
    cache::cleaninvalidate(); // clean and invalidate the data cache
}

Functions

clean

Perform a cache clean operation on the entire data cache

cleaninvalidate

Perform a cache clean and invalidate operation on the entire data cache

invalidate

Perform a cache invalidate operation on the entire data cache