Nils Pipenbrinck
Nils Pipenbrinck

Reputation: 86363

flushing datacache on linux

What is the standard way to manipulate the data-cache on linux from a user-mode program?

I'd like to writeback and invalidate the data-cache of a memory region that that is shared between my user-mode program and a peripheral device.

Linux has no driver for it, and writing one myself would be overkill for the simple things I want to do...

Upvotes: 1

Views: 264

Answers (1)

Zan Lynx
Zan Lynx

Reputation: 54325

How do you share the memory region without a driver?

But anyway, look at the msync functions.

Upvotes: 1

Related Questions