Skip to contentSkip to conversation

Heaps again...

Xenomai-core Jan Kiszka 1 participant 2 messages Nov 9, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Philippe,

having a Xenomai heap mapped and then forking / exiting the fork is not a good idea, is it? I mean for the sake of archdep.numaps...

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#1 lore raw
Quoted 4 lines · Jan Kiszka

Philippe,

having a Xenomai heap mapped and then forking / exiting the fork is not a good idea, is it? I mean for the sake of archdep.numaps...

OK, think I found the gremlin: xnheap_vmclose must be paired with a xnheap_vmopen for proper reference counting, not simple mapping operations. Will test my theory (actually: Linux Device Drivers' explanation) and post a patch afterwards.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux