All of lore.kernel.org
 help / color / mirror / Atom feed
From: yogesh garg <yogesh.garg1983@gmail.com>
To: xenomai@xenomai.org
Subject: [Xenomai] System hangs
Date: Thu, 5 Jun 2014 14:12:04 +0530	[thread overview]
Message-ID: <CAC66z96GX9uNm_cgzV_RSPQbep4RnwMaTwUW7qLsvfofweBkMw@mail.gmail.com> (raw)

Hi Everyone,
I am using rt_heap_create() in my init_module(). rt_heap_create is
returning 0(success).
But after this API my system gets hang.

something like
#include <native/heap.h>
RT_HEAP heap_desc;
int init_module (void)
{
   int ret;

    ret = rt_heap_create (&heap_desc, "MyHeap", 4*1024, H_SINGLE | H_FIFO);
    if (ret) {
        printk ("MY_MODULE: Error rt_heap_create: %d\n", ret);
    }
    printk ("MY_MODULE: heap memory created, name: MyHeap\n");
    return ret;
}

when I am running insmod command to insert it dmesg prints
"MY_MODULE: heap memory created, name: MyHeap"
but system hangs after that.

Please someone suggest me what could be the problem.
-- 
Regards,
Yogesh Garg

             reply	other threads:[~2014-06-05  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05  8:42 yogesh garg [this message]
2014-06-05 11:14 ` [Xenomai] System hangs Gilles Chanteperdrix

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=CAC66z96GX9uNm_cgzV_RSPQbep4RnwMaTwUW7qLsvfofweBkMw@mail.gmail.com \
    --to=yogesh.garg1983@gmail.com \
    --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.