mywiki:linux:cache
This is an old revision of the document!
Linux Cache Operation
| Invalidate | stale data problem | dma_cache_inv(unsigned long address unsigned long size) |
| Flush/write back | any dirty cache | dma_cache_wback(unsigned long address, unsigned long size) dma_cache_wback_inv(unsigned long address, unsigned long size)–flushes the cache lines to main memory first and then invalidates them from the cache |
Note: For dma_cache_wback: In theory, for write back caches an invalidate kills the cache line only without actually writing the data out, thus destroying the data in the cache.A safer thing to do in this case is issue a flush and invalidate instruction
mywiki/linux/cache.1454047365.txt.gz · Last modified: (external edit)
