Date: Thu, 19 May 2011 15:40:58 +0800 From: "arethe.rtai" Message-ID: <201105191540561098802@domain.hid> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon027263767421_=====" Subject: [Xenomai-core] I solved the problem of the shared memory cannot be allocated in the user space List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai-core This is a multi-part message in MIME format. --=====003_Dragon027263767421_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit HI all: I solved the problem of the shared memory cannot be allocated in the user space. Because the shared memory space are allocated from the kheap, but the kheap is not a mapped heap, i.e. its pages are not reserved. I init the kheap by xnheap_init_mapped rather than xnheap_init. The problem is solved. If there is a need, I can submit the patch to Xenomai. Qin Chenggang 2011-05-19 arethe.rtai --=====003_Dragon027263767421_===== Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
HI all:
     I solved the problem of the shared memory cannot be allocated in the user space.
Because the shared memory space are allocated from the kheap, but the kheap is not a mapped heap, i.e. its pages are not reserved.
I init the kheap by xnheap_init_mapped rather than xnheap_init. The problem is solved.
If there is a need, I can submit the patch to Xenomai.
 
Qin Chenggang
 
2011-05-19

arethe.rtai
--=====003_Dragon027263767421_=====--