Skip to contentSkip to conversation

Two processes accessing the same mapped physical memory

DISCUSSION Misbah khan 1 participant 1 message Aug 6, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,

In my driver i have mapped the SDRAM memory to user space using mmap. Application can directly access to this physical memory but how can i ensure that no other process will write to this memory location as long as my application is having the access to this memory (unlees it unmaps)

For testing this i have written a simul driver which also maps the same memory of SDRAM and a test application to access it when i run the two application (actual and test ) ,both of them were accessing the memory and writing and reading to it.

What is the mechanism to lock this memory (SDRAM in my case )so that no other process should access it unless and until my process unmaps it or gets killed.

--- Misbah <><

Signature · 2 lines
View this message in context: http://www.nabble.com/Two-processes-accessing-the-same-mapped-physical-memory-tp18849083p18849083.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.