Skip to contentSkip to conversation

rt_queue_delete returns -EBUSY

Xenomai-help Applied Petr Cervenka 5 participants 13 messages Aug 25, 2008 – Sep 21, 2008 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue will disappear. But there is another (perhaps very trivial) error. Function call rt_queue_delete always returns -EBUSY (at least for me). You don't have to bind it from another task or use it at all. I hope that I have used it in the right way.
Petr Cervenka

Simple example:

#include <stdlib.h>

#include <sys/mman.h> // mlockall
#include <native/task.h>
#include <native/queue.h>

RT_TASK main_task;
RT_QUEUE queue;

int main(int argc, char** argv) {
    int res;
    
    mlockall(MCL_CURRENT | MCL_FUTURE);
    
    res = rt_task_shadow(&main_task, "MAIN_TASK", 5, T_FPU);
    if (res < 0) {
        fprintf(stderr, "rt_task_shadow() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_end;
    }
    
    res = rt_queue_create(&queue, "QUEUE", 1024, Q_UNLIMITED, Q_FIFO | Q_SHARED);
    if (res < 0) {
        fprintf(stderr, "rt_queue_create() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_task;
    }

cleanup_queue:

    res = rt_queue_delete(&queue);
    if (res < 0) {
        fprintf(stderr, "rt_queue_delete() failed: %d (%s)\n", res, strerror(-res));
    }
cleanup_task:
cleanup_end:
    return res;
} 
#1 lore raw
Quoted 4 lines · Petr Cervenka

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue will disappear. But there is another (perhaps very trivial) error. Function call rt_queue_delete always returns -EBUSY (at least for me). You don't have to bind it from another task or use it at all. I hope that I have used it in the right way.

Classic chicken-and-egg issue. Ok, will fix.

Quoted 46 lines

Petr Cervenka

Simple example:

#include <stdlib.h>

#include <sys/mman.h> // mlockall
#include <native/task.h>
#include <native/queue.h>

RT_TASK main_task;
RT_QUEUE queue;

int main(int argc, char** argv) {
    int res;
    
    mlockall(MCL_CURRENT | MCL_FUTURE);
    
    res = rt_task_shadow(&main_task, "MAIN_TASK", 5, T_FPU);
    if (res < 0) {
        fprintf(stderr, "rt_task_shadow() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_end;
    }
    
    res = rt_queue_create(&queue, "QUEUE", 1024, Q_UNLIMITED, Q_FIFO | Q_SHARED);
    if (res < 0) {
        fprintf(stderr, "rt_queue_create() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_task;
    }

cleanup_queue:

    res = rt_queue_delete(&queue);
    if (res < 0) {
        fprintf(stderr, "rt_queue_delete() failed: %d (%s)\n", res, strerror(-res));
    }
cleanup_task:
cleanup_end:
    return res;
} 

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#11 lore raw
In reply to Petr Cervenka
Quoted 4 lines · Petr Cervenka

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue will disappear. But there is another (perhaps very trivial) error. Function call rt_queue_delete always returns -EBUSY (at least for me). You don't have to bind it from another task or use it at all. I hope that I have used it in the right way.

Actually, if your code still creates and deletes queues dynamically during the normal operations, this is clearly not the best approach. Those calls are VERY costly, and very much prone to unbounded latency.

I.e. They switch to secondary mode, allocate/deallocate ranges of kernel memory, create/delete internal Xenomai heap objects, and eventually map/unmap those memory ranges to/from your user-space process.

Quoted 46 lines

Petr Cervenka

Simple example:

#include <stdlib.h>

#include <sys/mman.h> // mlockall
#include <native/task.h>
#include <native/queue.h>

RT_TASK main_task;
RT_QUEUE queue;

int main(int argc, char** argv) {
    int res;
    
    mlockall(MCL_CURRENT | MCL_FUTURE);
    
    res = rt_task_shadow(&main_task, "MAIN_TASK", 5, T_FPU);
    if (res < 0) {
        fprintf(stderr, "rt_task_shadow() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_end;
    }
    
    res = rt_queue_create(&queue, "QUEUE", 1024, Q_UNLIMITED, Q_FIFO | Q_SHARED);
    if (res < 0) {
        fprintf(stderr, "rt_queue_create() failed: %d (%s)\n", res, strerror(-res));
        goto cleanup_task;
    }

cleanup_queue:

    res = rt_queue_delete(&queue);
    if (res < 0) {
        fprintf(stderr, "rt_queue_delete() failed: %d (%s)\n", res, strerror(-res));
    }
cleanup_task:
cleanup_end:
    return res;
} 

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#14 lore raw
In reply to a message not in the archive
Quoted 3 lines
Quoted 2 lines · Petr Cervenka

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue

will disappear. But there is another (perhaps very trivial) error.

Quoted 1 line
Quoted 1 line

Function call rt_queue_delete always returns -EBUSY (at least for me).

You don't have to bind it from another task or use it at all.

Quoted 3 lines
Quoted 1 line

I hope that I have used it in the right way.

Actually, if your code still creates and deletes queues dynamically

during the

Quoted 1 line

normal operations, this is clearly not the best approach. Those calls are

VERY

Quoted 3 lines

costly, and very much prone to unbounded latency.

I.e. They switch to secondary mode, allocate/deallocate ranges of kernel

memory,

Quoted 1 line

create/delete internal Xenomai heap objects, and eventually map/unmap

those

Quoted 1 line

memory ranges to/from your user-space process.

Dynamic creation of the queues is used only on time non-critical path (client connection, reconfiguration, ...).
I use one central queue and a listening server.
Then I have a set o clients which try to connect to the server. They create input and output queues and send its identifiers to the server through the central queue. Server binds those queues (in slow task ) and start to send and receive data (in fast task).
Similar system is used for reconfiguration, spec. commands, etc..
Only the slow tasks are involved (I hope so).
Petr Cervenka

Quoted 3 lines
Signature · 1 line
Philippe.
#2 lore raw
In reply to Philippe Gerum
Quoted 3 lines · [email protected] wrote:
Quoted 2 lines · Petr Cervenka

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue

will disappear. But there is another (perhaps very trivial) error.

Quoted 1 line
Quoted 1 line

Function call rt_queue_delete always returns -EBUSY (at least for me).

You don't have to bind it from another task or use it at all.

Quoted 4 lines
Quoted 1 line

I hope that I have used it in the right way.

Classic chicken-and-egg issue. Ok, will fix.

Hello,
I tried to have a look at this issue, but i it perhaps beyond my skills and xenomai knowledge.
I have found in the sources, that the EBUSY is returned by the xnheap_destroy_mapped (probably) because the heap->archdep.numaps still includes actual task/process/whatever. So there should be some test if the current task isn't (accidentally ;-)) the only referring task. But maybe the fix will be more complex ;-( Could you please fix it. It's strange that others don't have this problem with the new version...
TIA
Petr

#3 lore raw

Hello,

This is my first post, but I have been following the lists for a while. I just updated to xenomai 2.4.5 and noticed the same issue occurring in a clean-up routine.

Thanks,
Mark

Quoted 30 lines · Petr Cervenka
Quoted 3 lines · [email protected] wrote:
Quoted 2 lines · Petr Cervenka

Hello,
I tried xenomai 2.4.5, hoping that my problems with real-time queue

will disappear. But there is another (perhaps very trivial) error.

Quoted 1 line
Quoted 1 line

Function call rt_queue_delete always returns -EBUSY (at least for me).

You don't have to bind it from another task or use it at all.

Quoted 4 lines
Quoted 1 line

I hope that I have used it in the right way.

Classic chicken-and-egg issue. Ok, will fix.

Hello,
I tried to have a look at this issue, but i it perhaps beyond my skills and xenomai knowledge.
I have found in the sources, that the EBUSY is returned by the xnheap_destroy_mapped (probably) because the heap->archdep.numaps still includes actual task/process/whatever.
So there should be some test if the current task isn't (accidentally ;-)) the only referring task. But maybe the fix will be more complex ;-( Could you please fix it. It's strange that others don't have this problem with the new version...
TIA
Petr

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#4 lore raw
Quoted 5 lines · Mark Saiia

Hello,

This is my first post, but I have been following the lists for a while. I just updated to xenomai 2.4.5 and noticed the same issue occurring in a clean-up routine.

AFAIK Philippe is working on this issue. So I guess he will tell us a bit more when he is done.

Signature · 1 line
                                                 Gilles.
#5 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 5 lines · Mark Saiia

Hello,

This is my first post, but I have been following the lists for a while. I just updated to xenomai 2.4.5 and noticed the same issue occurring in a clean-up routine.

AFAIK Philippe is working on this issue. So I guess he will tell us a bit more when he is done.

Feedback welcome.

Signature · 1 line
Philippe.
native/heap.h +3 -0
Index: include/native/heap.h
===================================================================
@@ -118,6 +118,9 @@
 	xeno_flush_rq(RT_HEAP, rq, heap);
 }
 
+int rt_heap_delete_inner(RT_HEAP *heap,
+			 void __user *mapaddr);
+
 #else /* !CONFIG_XENO_OPT_NATIVE_HEAP */
 
 #define __native_heap_pkg_init()		({ 0; })
native/queue.h +3 -0
Index: include/native/queue.h
===================================================================
@@ -132,6 +132,9 @@
 	xeno_flush_rq(RT_QUEUE, rq, queue);
 }
 
+int rt_queue_delete_inner(RT_QUEUE *q,
+			  void __user *mapaddr);
+
 #else /* !CONFIG_XENO_OPT_NATIVE_QUEUE */
 
 #define __native_queue_pkg_init()		({ 0; })
nucleus/heap.h +2 -1
Index: include/nucleus/heap.h
===================================================================
@@ -178,7 +178,8 @@
 		       u_long heapsize,
 		       int memflags);
 
-int xnheap_destroy_mapped(xnheap_t *heap);
+int xnheap_destroy_mapped(xnheap_t *heap,
+			  void __user *mapaddr);
 
 #define xnheap_mapped_offset(heap,ptr) \
 (((caddr_t)(ptr)) - ((caddr_t)(heap)->archdep.heapbase))
ChangeLog +8 -0
Index: ChangeLog
===================================================================
@@ -1,3 +1,11 @@
+2008-09-08  Philippe Gerum  <[email protected]>
+
+	* ksrc/nucleus/heap.c (xnheap_destroy_mapped): Handle last
+	unmapping in heap deletion routine.
+
+	* ksrc/native/{queue.c, heap.c}: Fix spurious -EBUSY upon
+	deletion calls.
+
 2008-08-27  Philippe Gerum  <[email protected]>
 
 	* ksrc/skins/vxworks/syscalls.c: Fix taskNametoId() wrapper, so
skins/native/heap.c +2 -4
Index: src/skins/native/heap.c
===================================================================
@@ -81,6 +81,7 @@
 		/* If the mapping fails, make sure we don't leave a dandling
 		   heap in kernel space -- remove it. */
 		XENOMAI_SKINCALL1(__native_muxid, __native_heap_delete, &ph);
+
 	return err;
 }
 
@@ -117,14 +118,11 @@
 	if (err)
 		return err;
 
-	if (__real_munmap(heap->mapbase, heap->mapsize))
-		err = -errno;
-
 	heap->opaque = XN_NO_HANDLE;
 	heap->mapbase = NULL;
 	heap->mapsize = 0;
 
-	return err;
+	return 0;
 }
 
 int rt_heap_alloc(RT_HEAP *heap, size_t size, RTIME timeout, void **bufp)
skins/native/queue.c +1 -4
Index: src/skins/native/queue.c
===================================================================
@@ -118,14 +118,11 @@
 	if (err)
 		return err;
 
-	if (__real_munmap(q->mapbase, q->mapsize))
-		err = -errno;
-
 	q->opaque = XN_NO_HANDLE;
 	q->mapbase = NULL;
 	q->mapsize = 0;
 
-	return err;
+	return 0;
 }
 
 void *rt_queue_alloc(RT_QUEUE *q, size_t size)
skins/psos+/rn.c +1 -1
Index: ksrc/skins/psos+/rn.c
===================================================================
@@ -143,7 +143,7 @@
 #endif /* CONFIG_XENO_OPT_REGISTRY */
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 	if (xnheap_mapped_p(&rn->heapbase))
-		xnheap_destroy_mapped(&rn->heapbase);
+		xnheap_destroy_mapped(&rn->heapbase, NULL);
 	else
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
 		xnheap_destroy(&rn->heapbase, NULL, NULL);
skins/rtai/shm.c +3 -3
Index: ksrc/skins/rtai/shm.c
===================================================================
@@ -299,7 +299,7 @@
 				 * Can destroy_mapped suspend ?
 				 */
 #ifdef CONFIG_XENO_OPT_PERVASIVE
-				ret = xnheap_destroy_mapped(p->heap);
+				ret = xnheap_destroy_mapped(p->heap, NULL);
 #else /* !CONFIG_XENO_OPT_PERVASIVE */
 				ret =
 				    xnheap_destroy(p->heap,
@@ -357,10 +357,10 @@
 			if (p->heap == &kheap)
 				xnheap_free(&kheap, p->chunk);
 			else {
-				/* Should release lock here? Can destroy_mapped suspend ?
+				/* FIXME: MUST release lock here.
 				 */
 #ifdef CONFIG_XENO_OPT_PERVASIVE
-				xnheap_destroy_mapped(p->heap);
+				xnheap_destroy_mapped(p->heap, NULL);
 #else /* !CONFIG_XENO_OPT_PERVASIVE */
 				xnheap_destroy(p->heap, &__heap_flush_private,
 					       NULL);
skins/posix/shm.c +2 -2
Index: ksrc/skins/posix/shm.c
===================================================================
@@ -112,7 +112,7 @@
 		xnheap_free(&shm->heapbase, shm->addr);
 
 #ifdef CONFIG_XENO_OPT_PERVASIVE
-		xnheap_destroy_mapped(&shm->heapbase);
+		xnheap_destroy_mapped(&shm->heapbase, NULL);
 #else /* !CONFIG_XENO_OPT_PERVASIVE. */
 		xnheap_destroy(&shm->heapbase, &pse51_free_heap_extent, NULL);
 #endif /* !CONFIG_XENO_OPT_PERVASIVE. */
@@ -531,7 +531,7 @@
 
 			xnheap_free(&shm->heapbase, shm->addr);
 #ifdef CONFIG_XENO_OPT_PERVASIVE
-			xnheap_destroy_mapped(&shm->heapbase);
+			xnheap_destroy_mapped(&shm->heapbase, NULL);
 #else /* !CONFIG_XENO_OPT_PERVASIVE. */
 			xnheap_destroy(&shm->heapbase, &pse51_free_heap_extent,
 				       NULL);
skins/vrtx/syscall.c +1 -1
Index: ksrc/skins/vrtx/syscall.c
===================================================================
@@ -1182,7 +1182,7 @@
 
 unmap_pt:
 
-	xnheap_destroy_mapped(ptheap);
+	xnheap_destroy_mapped(ptheap, NULL);
 
 free_heap:
 
skins/vrtx/heap.c +1 -1
Index: ksrc/skins/vrtx/heap.c
===================================================================
@@ -86,7 +86,7 @@
 
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 	if (xnheap_mapped_p(&heap->sysheap))
-		xnheap_destroy_mapped(&heap->sysheap);
+		xnheap_destroy_mapped(&heap->sysheap, NULL);
 	else
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
 		xnheap_destroy(&heap->sysheap, NULL, NULL);
skins/vrtx/pt.c +1 -1
Index: ksrc/skins/vrtx/pt.c
===================================================================
@@ -85,7 +85,7 @@
 
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 	if (pt->sysheap) {
-		xnheap_destroy_mapped(pt->sysheap);
+		xnheap_destroy_mapped(pt->sysheap, NULL);
 		xnfree(pt->sysheap);
 	}
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
skins/native/syscall.c +4 -4
Index: ksrc/skins/native/syscall.c
===================================================================
@@ -2140,8 +2140,8 @@
 	if (!q)
 		err = -ESRCH;
 	else {
-		err = rt_queue_delete(q);	/* Callee will check the queue
-						   descriptor for validity again. */
+		/* Callee will check the queue descriptor for validity again. */
+		err = rt_queue_delete_inner(q, (void __user *)ph.mapbase);
 		if (!err && q->cpid)
 			xnfree(q);
 	}
@@ -2668,8 +2668,8 @@
 	if (!heap)
 		err = -ESRCH;
 	else {
-		err = rt_heap_delete(heap);	/* Callee will check the heap
-						   descriptor for validity again. */
+		/* Callee will check the heap descriptor for validity again. */
+		err = rt_heap_delete_inner(heap, (void __user *)ph.mapbase);
 		if (!err && heap->cpid)
 			xnfree(heap);
 	}
skins/native/heap.c +13 -6
Index: ksrc/skins/native/heap.c
===================================================================
@@ -366,7 +366,7 @@
  * Rescheduling: possible.
  */
 
-int rt_heap_delete(RT_HEAP *heap)
+int rt_heap_delete_inner(RT_HEAP *heap, void __user *mapaddr)
 {
 	int err = 0;
 	spl_t s;
@@ -392,14 +392,16 @@
 
 	xnlock_put_irqrestore(&nklock, s);
 
-	/* The heap descriptor has been marked as deleted before we
-	   released the superlock thus preventing any sucessful subsequent
-	   calls of rt_heap_delete(), so now we can actually destroy
-	   it safely. */
+	/*
+	 * The heap descriptor has been marked as deleted before we
+	 * released the superlock thus preventing any sucessful
+	 * subsequent calls of rt_heap_delete(), so now we can
+	 * actually destroy it safely.
+	 */
 
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 	if (heap->mode & H_MAPPABLE)
-		err = xnheap_destroy_mapped(&heap->heap_base);
+		err = xnheap_destroy_mapped(&heap->heap_base, mapaddr);
 	else
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
 		err = xnheap_destroy(&heap->heap_base, &__heap_flush_private, NULL);
@@ -429,6 +431,11 @@
 	return err;
 }
 
+int rt_heap_delete(RT_HEAP *heap)
+{
+	return rt_heap_delete_inner(heap, NULL);
+}
+
 /**
  * @fn int rt_heap_alloc(RT_HEAP *heap,size_t size,RTIME timeout,void **blockp)
  *
skins/native/queue.c +13 -6
Index: ksrc/skins/native/queue.c
===================================================================
@@ -328,7 +328,7 @@
  * Rescheduling: possible.
  */
 
-int rt_queue_delete(RT_QUEUE *q)
+int rt_queue_delete_inner(RT_QUEUE *q, void __user *mapaddr)
 {
 	int err = 0;
 	spl_t s;
@@ -353,14 +353,16 @@
 
 	xnlock_put_irqrestore(&nklock, s);
 
-	/* The queue descriptor has been marked as deleted before we
-	   released the superlock thus preventing any sucessful subsequent
-	   calls of rt_queue_delete(), so now we can actually destroy the
-	   associated heap safely. */
+	/*
+	 * The queue descriptor has been marked as deleted before we
+	 * released the superlock thus preventing any sucessful
+	 * subsequent calls of rt_queue_delete(), so now we can
+	 * actually destroy the associated heap safely.
+	 */
 
 #ifdef CONFIG_XENO_OPT_PERVASIVE
 	if (q->mode & Q_SHARED)
-		err = xnheap_destroy_mapped(&q->bufpool);
+		err = xnheap_destroy_mapped(&q->bufpool, mapaddr);
 	else
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
 		err = xnheap_destroy(&q->bufpool, &__queue_flush_private, NULL);
@@ -390,6 +392,11 @@
 	return err;
 }
 
+int rt_queue_delete(RT_QUEUE *q)
+{
+	return rt_queue_delete_inner(q, NULL);
+}
+
 /**
  * @fn void *rt_queue_alloc(RT_QUEUE *q,size_t size)
  *
nucleus/heap.c +20 -26

103 lines not on this page · raw message

#6 lore raw

I tried the patch on xenomai 2.4.5. After a couple of my long run tests I have found no errors. So I am very satisfied with it ;-)
Thank you VERY much.
Petr

Quoted 17 lines
Quoted 10 lines · Gilles Chanteperdrix
Quoted 5 lines · Mark Saiia

Hello,

This is my first post, but I have been following the lists for a while. I just updated to xenomai 2.4.5 and noticed the same issue occurring in a clean-up routine.

AFAIK Philippe is working on this issue. So I guess he will tell us a bit more when he is done.

Feedback welcome.

Signature · 1 line
Philippe.
#7 lore raw
Quoted 2 lines · Petr Cervenka

I tried the patch on xenomai 2.4.5. After a couple of my long run tests I have found no errors. So I am very satisfied with it ;-)

Ok, thanks. I'm queuing this patch for commit to both branches then.

Quoted 1 line

Thank you VERY much.

You are welcome.

Quoted 20 lines

Petr

Quoted 15 lines
Quoted 9 lines · Gilles Chanteperdrix
Quoted 5 lines · Mark Saiia

Hello,

This is my first post, but I have been following the lists for a while. I just updated to xenomai 2.4.5 and noticed the same issue occurring in a clean-up routine.

AFAIK Philippe is working on this issue. So I guess he will tell us a bit more when he is done.

Feedback welcome.

Signature · 1 line
Philippe.
Signature · 1 line
Philippe.
#8 lore raw

Hi Philippe

Quoted 5 lines · Philippe Gerum
Quoted 2 lines · Petr Cervenka

I tried the patch on xenomai 2.4.5. After a couple of my long run tests I have found no errors. So I am very satisfied with it ;-)

Ok, thanks. I'm queuing this patch for commit to both branches then.

It would appear that the patch is missing changes in a couple of spots that is causing kernel compiles to break - Assuming the secord arg to xnheap_destroy_mapped is NULL, the attached (trivial) patch addresses the problem in TRUNK.

Regards, Paul.

nucleus/module.c +1 -1
Index: ksrc/nucleus/module.c
===================================================================
@@ -1238,7 +1238,7 @@ void __exit __xeno_sys_exit(void)
 #endif /* CONFIG_XENO_OPT_PIPE */
 #endif /* __KERNEL__ */
 
-	xnheap_destroy_mapped(&__xnsys_global_ppd.sem_heap);
+	xnheap_destroy_mapped(&__xnsys_global_ppd.sem_heap, NULL);
 
 	if (nkmsgbuf)
 		xnarch_free_host_mem(nkmsgbuf, XNPOD_FATAL_BUFSZ);
nucleus/shadow.c +1 -1
Index: ksrc/nucleus/shadow.c
===================================================================
@@ -1954,7 +1954,7 @@ static void *xnshadow_sys_event(int even
 	case XNSHADOW_CLIENT_DETACH:
 		p = ppd2sys((xnshadow_ppd_t *) data);
 
-		xnheap_destroy_mapped(&p->sem_heap);
+		xnheap_destroy_mapped(&p->sem_heap, NULL);
 
 		return NULL;
 	}
#9 lore raw
Quoted 4 lines · Paul

Hi Philippe

Quoted 1 line · Philippe Gerum

Petr Cervenka wrote:

Quoted 9 lines
Quoted 3 lines
Quoted 2 lines

I tried the patch on xenomai 2.4.5. After a couple of my long run tests I have found no errors. So I am very satisfied with it ;-)

Ok, thanks. I'm queuing this patch for commit to both branches then.

It would appear that the patch is missing changes in a couple of spots that is causing kernel compiles to break - Assuming the secord arg to xnheap_destroy_mapped is NULL, the attached (trivial) patch addresses the problem in TRUNK.

Applied, thanks.

Quoted 12 lines

Regards, Paul.

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#10 lore raw
In reply to Paul
Quoted 4 lines · Paul

Hi Philippe

Quoted 1 line · Philippe Gerum

Petr Cervenka wrote:

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

I tried the patch on xenomai 2.4.5. After a couple of my long run tests I have found no errors. So I am very satisfied with it ;-)

Ok, thanks. I'm queuing this patch for commit to both branches then.

It would appear that the patch is missing changes in a couple of spots that is causing kernel compiles to break - Assuming the secord arg to xnheap_destroy_mapped is NULL, the attached (trivial) patch addresses the problem in TRUNK.

Applied, thanks.

Signature · 1 line
					    Gilles.