* [Xenomai-help] deleting a left over heap (shared memory segment)
@ 2006-04-11 15:45 Moser, Dan
2006-04-11 20:30 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Moser, Dan @ 2006-04-11 15:45 UTC (permalink / raw)
To: xenomai
Hi,
I was wondering if there was a command line method for deleting left
over heaps (i.e., those that were not properly deleted with a call to
rt_heap_delete()) from /proc/xenomai/registry/native/heaps.
Just a simple rm command (as root) yields the following:
# rm -f myshmem
cannot remove `myshmem': Operation not permitted
Thanks in advance for any help/insight,
Dan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] deleting a left over heap (shared memory segment)
2006-04-11 15:45 [Xenomai-help] deleting a left over heap (shared memory segment) Moser, Dan
@ 2006-04-11 20:30 ` Philippe Gerum
2006-04-11 20:42 ` Philippe Gerum
2006-04-11 20:47 ` [Xenomai-core] " Jan Kiszka
0 siblings, 2 replies; 4+ messages in thread
From: Philippe Gerum @ 2006-04-11 20:30 UTC (permalink / raw)
To: Moser, Dan; +Cc: xenomai
Moser, Dan wrote:
> Hi,
>
> I was wondering if there was a command line method for deleting left
> over heaps (i.e., those that were not properly deleted with a call to
> rt_heap_delete()) from /proc/xenomai/registry/native/heaps.
>
> Just a simple rm command (as root) yields the following:
>
> # rm -f myshmem
> cannot remove `myshmem': Operation not permitted
>
For the moment, there is way to remove lingering native API objects from
the /proc interface. On the other hand, the RTDM API allows this for
some of its objects by writing a magic value to the proper /proc entry,
and we might use the same technique to provide this feature to the
native one.
> Thanks in advance for any help/insight,
> Dan
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai-help] deleting a left over heap (shared memory segment)
2006-04-11 20:30 ` Philippe Gerum
@ 2006-04-11 20:42 ` Philippe Gerum
2006-04-11 20:47 ` [Xenomai-core] " Jan Kiszka
1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2006-04-11 20:42 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai, Moser, Dan
Philippe Gerum wrote:
> Moser, Dan wrote:
>
>> Hi,
>>
>> I was wondering if there was a command line method for deleting left
>> over heaps (i.e., those that were not properly deleted with a call to
>> rt_heap_delete()) from /proc/xenomai/registry/native/heaps.
>>
>> Just a simple rm command (as root) yields the following:
>>
>> # rm -f myshmem
>> cannot remove `myshmem': Operation not permitted
>>
>
> For the moment, there is
+ no
way to remove lingering native API objects from
> the /proc interface. On the other hand, the RTDM API allows this for
> some of its objects by writing a magic value to the proper /proc entry,
> and we might use the same technique to provide this feature to the
> native one.
>
>> Thanks in advance for any help/insight,
>> Dan
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>>
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Xenomai-core] Re: [Xenomai-help] deleting a left over heap (shared memory segment)
2006-04-11 20:30 ` Philippe Gerum
2006-04-11 20:42 ` Philippe Gerum
@ 2006-04-11 20:47 ` Jan Kiszka
1 sibling, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2006-04-11 20:47 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai, Moser, Dan, xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1386 bytes --]
Philippe Gerum wrote:
> Moser, Dan wrote:
>> Hi,
>>
>> I was wondering if there was a command line method for deleting left
>> over heaps (i.e., those that were not properly deleted with a call to
>> rt_heap_delete()) from /proc/xenomai/registry/native/heaps.
>>
>> Just a simple rm command (as root) yields the following:
>>
>> # rm -f myshmem
>> cannot remove `myshmem': Operation not permitted
>>
>
> For the moment, there is way to remove lingering native API objects from
^^^
no?!
> the /proc interface. On the other hand, the RTDM API allows this for
> some of its objects by writing a magic value to the proper /proc entry,
> and we might use the same technique to provide this feature to the
> native one.
Err, before adding to much stuff in this style (I'm allowed to diss it,
I introduced it ;) ), I would rather suggest to start thinking about a
scalable(!) cleanup hook for kernel objects.
We would need, e.g., per-process ownership of things like IPC objects or
RTDM devices instances. Then we could simply walk the chain on cleanup,
preferable in Linux context. This is a concept I already implemented in
an experimental skin. If this robustness should add too much overhead
(but I don't think so), we could make it optional. RTDM is already
prepared for it ("forced closure")!
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-11 20:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 15:45 [Xenomai-help] deleting a left over heap (shared memory segment) Moser, Dan
2006-04-11 20:30 ` Philippe Gerum
2006-04-11 20:42 ` Philippe Gerum
2006-04-11 20:47 ` [Xenomai-core] " Jan Kiszka
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.