|
mmap and memory protection
|
04/27/2010 10:57 AM
post52906
|
mmap and memory protection
Hello,
If I allocate contiguous physical memory with mmap like this
ptr = mmap( NULL, 256*64*8,
PROT_READ|PROT_WRITE|PROT_NOCACHE,
MAP_PHYS|MAP_ANON, NOFD, 0 );
Can I be sure that...
1) this memory will not be accessible from any other process then the one from where I allocate it?
2) mmap will not allocate this memory for any otehr process?
3) And further it will be even safe from function call like mmap_device_memory()?
Thank You very much
|
|
|