PDA

View Full Version : Physical memory request to Linux Kernel


tanmay.anjaria
02-06-08, 02:44 AM
Hello,

I am running a multithreaded program for which I'm in need of acquiring some physical memory from linux kernel.

malloc() gives virtually memory mapped memory and then MMU translates that into physical memory...

Can someone show me the way to allocate Physical memory directly on linux? (without routing through virtual)

Thanks,
Tanmay

mlauss
02-06-08, 11:02 AM
What are you trying to achieve? Why do you need memory to be at a certain
physical address?

Valheru
03-15-08, 06:03 AM
You can't. That would mean bypassing the TLB, which operates at a hardware level.