All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Smith <rsmith@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Re: Proper module_cleanup procedure
Date: Wed, 13 Sep 2006 14:38:31 -0400	[thread overview]
Message-ID: <45085027.1000204@domain.hid> (raw)
In-Reply-To: <4506F853.6060502@domain.hid>

Anyone?...Is this mike on?

Randy Smith wrote:
> Hello,
>
> I am running the 2.4 kernel with Xenomai-2.1.0 native skin and I have 
> a kernel module that creates 2 shared memory heaps and then creates a 
> a periodic realtime task to do some interesting things.  This periodic 
> realtime task communicates with a linux user mode task through the 
> shared memory that gains access to it through 
> rt_heap_bind/rt_heap_alloc calls.  Things go along swimmingly.
>
> I now want to be able to do an "rmmod" on the module and in its 
> cleanup routine, right now I just have rt_heap_delete calls for the 
> two shared memory heaps.  This completes successfully, but if I then 
> try to install another version (debug for instance) of the module with 
> "insmod", I get a memory error.
> Is this is due to the fact that I didn't suspend the periodic realtime 
> task and then delete it before deleting the heaps?  Is this 
> necessary?  Are there any use counts or other signs that I could check 
> to ensure that everyone was finished with the heaps so that I can 
> delete them?
>
> Is there any consequence to the user mode task due to jerking the rug 
> out from under it?
>
> Thanks,
>
> Randy Smith
> Software Engineer
> ImageMap, Inc.
>


  reply	other threads:[~2006-09-13 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-12 18:11 [Xenomai-help] Proper module_cleanup procedure Randy Smith
2006-09-13 18:38 ` Randy Smith [this message]
2006-09-13 19:25   ` [Xenomai-help] " Gilles Chanteperdrix
2006-09-28 13:09     ` Randy Smith
  -- strict thread matches above, loose matches on Subject: below --
2006-09-28 13:57 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=45085027.1000204@domain.hid \
    --to=rsmith@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.