linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Two processes accessing the same mapped physical memory
@ 2008-08-06 11:17 Misbah khan
  0 siblings, 0 replies; only message in thread
From: Misbah khan @ 2008-08-06 11:17 UTC (permalink / raw)
  To: linuxppc-embedded


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 <><


-- 
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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-06 11:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 11:17 Two processes accessing the same mapped physical memory Misbah khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).