Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-03 Thread Jan Kiszka
Philippe Gerum wrote: On Mon, 2009-11-02 at 19:01 +0100, Jan Kiszka wrote: Jan Kiszka wrote: Philippe Gerum wrote: On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Philippe Gerum
On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work out very well: Corner cases are racy, intransparent to the user, and proper

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Jan Kiszka
Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work out very well: Corner cases are racy, intransparent to the

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Philippe Gerum
On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Jan Kiszka
Jan Kiszka wrote: Philippe Gerum wrote: On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-11-02 Thread Philippe Gerum
On Mon, 2009-11-02 at 19:01 +0100, Jan Kiszka wrote: Jan Kiszka wrote: Philippe Gerum wrote: On Mon, 2009-11-02 at 17:41 +0100, Jan Kiszka wrote: Philippe Gerum wrote: On Sat, 2009-10-24 at 19:22 +0200, Philippe Gerum wrote: On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote:

Re: [Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-10-24 Thread Philippe Gerum
On Tue, 2009-10-20 at 13:37 +0200, Jan Kiszka wrote: Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work out very well: Corner cases are racy, intransparent to the user, and proper error handling imposes a lot of complexity on the caller - if

[Xenomai-core] [PATCH v3 5/9] nucleus: Avoid returning errors from xnheap_destroy_mapped

2009-10-20 Thread Jan Kiszka
Allowing xnheap_delete_mapped to return an error and then attempting to recover from it does not work out very well: Corner cases are racy, intransparent to the user, and proper error handling imposes a lot of complexity on the caller - if it actually bothers to check the return value...