gtpc2m33 | C/C++ Language Support User's Guide |
This function flushes the contents of the cache.
Format
#include <c$cach.h> long flushCache(const cacheToken *cache_to_flush);
Normal Return
Error Return
Programming Considerations
The flush occurs immediately and without regard for any other applications that may also be using the cache.
Examples
The following example flushes the contents of the file system INODE cache.
#include <c$cach.h> #include <i$glue.h> struct icontrol * contrl_ptr; /* pointer file system control area */ /* get pointer to file system control area */ contrl_ptr = cinfc_fast_ss(CINFC_CMMZERO, ecbptr()->ce1dbi ); /* if using INODE cache, call to flush INODE cache */ if (contrl_ptr->icontrol_icacheToken.token1 != 0) flushCache(&contrl_ptr->icontrol_icacheToken);
Related Information