I would like to know if there is any way to disable cache while performing read/write API operations in QNX.
I found that a read after a write operation is taking very less time as there is cache involved in fulfilling the operation.
But I would like to know the actual disk performance.
I have seen some functions like cache_fini, CACHE_FLUSH, CACHE_INVAL etc.
Do these functions satisfy my requirements? Please support me by providing sample programs to use CACHE_* functions.
I see in Windows, when opening or creating a file with the CreateFile function, the FILE_FLAG_NO_BUFFERING flag can be specified to disable system caching of data being read from or written to the file. I would like to know about the equivalent of such a functionality in QNX.
Thanks in advance,