ufrisk / MemProcFS

MemProcFS
GNU Affero General Public License v3.0
2.81k stars 352 forks source link

How to clear the internal cache? #241

Closed Hollow-1 closed 7 months ago

Hollow-1 commented 7 months ago

Hello, ufrisk this is the situation I face : I need to read first pointer to locate the next read, and calc the pointer,then read next pointer, ...so many small reads, most of data to be read is together, but it keeps changing, so, I use cache to avoid frequent access to FPGA, but how do I clear the cache to get fresh data?

ufrisk commented 7 months ago

you can pass either one of the refresh options, i.e. VMMDLL_OPT_REFRESH_* to VMMDLL_ConfigSet or pass the VMMDLL_FLAG_NOCACHE flag to your read function.

In general for programming related questions it may be better to ask it on the discord channel https://discord.gg/BCmfBhDPXX since you'd probably get a quicker answer there.