Welcome to the Linux Foundation Forum!

How to declare a a block of memory as Write-back type & bind a virtual address to that?

Using the sample code from 12.6. Creating MTRRs from a C program using ioctl()’s
I can create a write-back type memory range. However, I was wondering if anyone can tell me if it is possible to bind a virtual address to that specific write-memory block address?

I tried to use mmap to bind the virtual address of a structure with the physical base address of the MTRR region. Here is the code that I tried. https://pastebin.com/TjPaPTiu That however doesn’t seem to do anything. I could not find any suitable article/topic regarding this. I guess I do not have a clue where to start. Any help?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training