开发者

flushing datacache on linux

开发者 https://www.devze.com 2022-12-09 20:58 出处:网络
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 be

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...


How do you share the memory region without a driver?

But anyway, look at the msync functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号