Function Prototypes:ttDevCacheMgmtFunc
Table of Contents >> Programmer's Reference
| void (*ttDevCacheMgmtFuncPtr) | ( |
| ttUserInterface interfaceHandle, | |
| char * dataPtr, | |
| int dataLength, | |
| ttUserGenericUnion userParam | |
| ); |
Function Description
This is the type definition shared by the userâs callback functions to both flush and invalidate the cache. The stack provides the interface handle, a pointer to the data buffer, the length of data, and a user parameter provided when the user registered the callback function.
Parameters
- interfaceHandle
- The interface handle as returned by tfAddInterface.
- dataPtr
- Pointer to the start of data. Data may not always start on a cache line boundary. If this is the case, the stack guarantees that all data between the previous cache line boundary and the start of data is unused and can be flushed or invalidated without negative consequences. Similarly, if the data does not end on a cache line boundary, all memory after the end of data up to the next cache line boundary is guaranteed to be unused.
- dataLength
- Length of the data in bytes
- userParam
- Parameter originally provided by the user when the callback function was registered. This parameter can be ignored if it is not needed.