Dien Nguyen
Dien Nguyen

Reputation: 2059

The correct way to access uncachable memory in Linux

My scenario is as follow:

May anyone please tell me the correct way to access this shared memory region. I just wonder how some network drivers (for network cards on PCIE bus) can access the data consistently without doing the invalidate/flush cache. Any suggestions are appreciated, thank a lot!

Upvotes: 1

Views: 404

Answers (1)

caf
caf

Reputation: 239011

You should be using ioremap_nocache() to map the memory regions in question, and reading/writing them using the ioread*() and iowrite*() functions.

Upvotes: 1

Related Questions