All of lore.kernel.org
 help / color / mirror / Atom feed
From: "S. ancelot" <sancelot@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] newbie heap usage problem
Date: Wed, 11 Jan 2006 13:44:01 +0000	[thread overview]
Message-ID: <43C50BA1.7020908@domain.hid> (raw)

Hi,
I tried to make a programming sample using heap .
The heap seems to be created regarding registry in proc, but then the  
program seg faults


Here is my program

#include <sys/mman.h>
#include <xenomai/native/heap.h>
#include <stdio.h>

RT_HEAP *m;
int x;

int main()
{
  mlockall(MCL_CURRENT|MCL_FUTURE);
  x = rt_heap_create(m,"toto",100,H_SHARED);
  rt_heap_delete(m);
  return 0;

}

Best Regards
S@


             reply	other threads:[~2006-01-11 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-11 13:44 S. ancelot [this message]
2006-01-11 13:07 ` [Xenomai-help] newbie heap usage problem Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C50BA1.7020908@domain.hid \
    --to=sancelot@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.