Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Exclusive access to physical memory: (3 Items)
   
Exclusive access to physical memory  
Hi,

We have a device driver (NAND Flash) that we wish to have exclusive access to the NAND registers.   We suspect something
 is clobbering these registers and we'd like that something to seg-fault.  The MAP_PRIVATE appears to make a copy of the
 are specified and allocate memory for the process.

Is there a flag/api function that would allow us to use the MMU to prevent any other process from accessing the NAND 
flash registers after our driver has mapped them to its own process space?

Thanks
Kevin
RE: Exclusive access to physical memory  
I don't think you can prevent shared mapping for those memory, but you can always use showmem to find out if the 
registers are shared mapped to other processes.

Jerry Sui | Software Developer | jsui@qnx.com
O:613-591-0836 x 24904 C:613-240-9239 | www.qnx.com | QNX Software Systems
Cisco Support Team email: cisco_support@qnx.com


-----Original Message-----
From: Kevin Stallard [mailto:community-noreply@qnx.com] 
Sent: October-02-12 12:34 PM
To: ostech-core_os
Subject: Exclusive access to physical memory

Hi,

We have a device driver (NAND Flash) that we wish to have exclusive access to the NAND registers.   We suspect something
 is clobbering these registers and we'd like that something to seg-fault.  The MAP_PRIVATE appears to make a copy of the
 are specified and allocate memory for the process.

Is there a flag/api function that would allow us to use the MMU to prevent any other process from accessing the NAND 
flash registers after our driver has mapped them to its own process space?

Thanks
Kevin




_______________________________________________

OSTech
http://community.qnx.com/sf/go/post95976
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com
Re: RE: Exclusive access to physical memory  
Thanks Jerry,

I'll take a look, I'm worried that it is may not be persistent (doesn't stay resident) and showmen won't catch it..

Kevin