Subject: Re: [Xenomai-help] rt descriptors From: Philippe Gerum In-Reply-To: <17861.63466.119293.917982@domain.hid> References: <1170412112.11967.6.camel@domain.hid> <17861.63466.119293.917982@domain.hid> Content-Type: text/plain Date: Sun, 04 Feb 2007 16:49:12 +0100 Message-Id: <1170604152.4208.82.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai On Sun, 2007-02-04 at 16:12 +0100, Gilles Chanteperdrix wrote: > Victor Shulyak wrote: > > Hello > > > > Can I use RT_HEAP (or others descriptors) in the following way: > > > > RT_HEAP h_desc; > > create descriptor (rt_heap_create (&h_desc,...) > > > > fork > > child process: rt_task_shadow () and rt_heap_alloc (&h_desc, ...) > > parent process: rt_heap_alloc (&h_desc, ...) > > > > Will h_desc be valid and usable in child processes? > > forking in a xenomai process is not yet fully supported. You can do it, > but you will get unwanted switches to secondary mode because of page > faults. This issue is solved by the following patch: > > https://mail.gna.org/public/xenomai-core/2007-01/msg00092.html > > but the patch has not yet been merged with the I-pipe patch, so, if you > want to call fork in your xenomai programs, you have to apply > this patch after the I-pipe patch. > Btw, for x86, it's been merged in 1.7-00: http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.19-i386-1.7-00.patch > Now, about the rt descriptors, I would expect them to be usable in child > processes as well. > -- Philippe.