This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Flush cache lines associated with a data buffer
#include <sys/cache.h> CACHE_FLUSH(struct cache_ctrl *cinfo, void *vaddr, uint64_t paddr, size_t len);
libcache
Use the -l cache option to qcc to link against this library.
This macro is used to flush any cache lines associated with a data buffer out to memory. This routine ensures that any modifications that have been made to the data by the CPU will be reflected by the contents of memory, and thus an external device reading the data won't retrieve stale data. For more information about cache coherency, see cache_init().
The following environment variables, if they exist, affect the behavior of this cache coherency function:
This function was added in the QNX Momentics 6.3.0 SP2. |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
CACHE_FLUSH() is implemented as a macro.
cache_fini(), cache_init(), CACHE_INVAL()