Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - mmap and memory protection: (1 Item)
   
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