All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Using pipes in 3.0rc
@ 2014-10-28  9:25 Registrierungen
  2014-10-28 10:01 ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Registrierungen @ 2014-10-28  9:25 UTC (permalink / raw)
  To: xenomai

Hello,

i try to switch with my working project from Xenomai 2.6 to 3.0rc 
Cobaltusing the native/alchemy skin.

Creating tasks,etc. seems to works fine.

If i try to open a pipe from the realtime taks using rt_pipe_create it 
returns with the error -88.
XDDP/rpc ist activted in th kernel.
  I used this Makefile config:

XENO_CONFIG := /usr/xenomai/bin/xeno-config
CFLAGS := $(shell $(XENO_CONFIG) --skin=alchemy --cflags)
LDFLAGS := $(shell $(XENO_CONFIG) --skin=alchemy --ldflags)
CC := $(shell $(XENO_CONFIG) --cc)

Has anything changed handling pipes in 3.0?

What exacliy this error means?

Thanks

   Sascha



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-28  9:25 [Xenomai] Using pipes in 3.0rc Registrierungen
@ 2014-10-28 10:01 ` Philippe Gerum
  2014-10-28 13:44   ` Registrierungen
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-10-28 10:01 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 10/28/2014 10:25 AM, Registrierungen wrote:
> Hello,
> 
> i try to switch with my working project from Xenomai 2.6 to 3.0rc
> Cobaltusing the native/alchemy skin.
> 
> Creating tasks,etc. seems to works fine.
> 
> If i try to open a pipe from the realtime taks using rt_pipe_create it
> returns with the error -88.

This is -ENOTSOCK, you can check all error codes there:
/usr/include/asm-generic/errno-base.h
/usr/include/asm-generic/errno.h

ENOTSOCK is not raised by the alchemy API, so this must be a syscall
taking the wrong route to the glibc in the core lib.
Please try this patch:

diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
index 93da9be..439a00f 100644
--- a/lib/alchemy/pipe.c
+++ b/lib/alchemy/pipe.c
@@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
 	}
 
 	if (poolsize > 0) {
-		ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
-				 &poolsize, sizeof(poolsize));
+		ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
+				      &poolsize, sizeof(poolsize)));
 		if (ret)
 			goto fail_sockopt;
 	}
@@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
 	memset(&saddr, 0, sizeof(saddr));
 	saddr.sipc_family = AF_RTIPC;
 	saddr.sipc_port = minor;
-	ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
+	ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
 	if (ret)
 		goto fail_sockopt;
 
> 
> Has anything changed handling pipes in 3.0?

All user-visible changes are reported here:
http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/

-- 
Philippe.


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-28 10:01 ` Philippe Gerum
@ 2014-10-28 13:44   ` Registrierungen
  2014-10-28 13:54     ` Philippe Gerum
  2014-10-28 14:11     ` Gilles Chanteperdrix
  0 siblings, 2 replies; 15+ messages in thread
From: Registrierungen @ 2014-10-28 13:44 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

Thanks for your support.

Unfortainly it din'twork for me.
I patched and recompiled and installed xenomai and my app,
but i have still the same error.

Have you got another idea, or need some other informations from my side?

Sascha

Am 28.10.2014 11:01, schrieb Philippe Gerum:
> On 10/28/2014 10:25 AM, Registrierungen wrote:
>> Hello,
>>
>> i try to switch with my working project from Xenomai 2.6 to 3.0rc
>> Cobaltusing the native/alchemy skin.
>>
>> Creating tasks,etc. seems to works fine.
>>
>> If i try to open a pipe from the realtime taks using rt_pipe_create it
>> returns with the error -88.
> This is -ENOTSOCK, you can check all error codes there:
> /usr/include/asm-generic/errno-base.h
> /usr/include/asm-generic/errno.h
>
> ENOTSOCK is not raised by the alchemy API, so this must be a syscall
> taking the wrong route to the glibc in the core lib.
> Please try this patch:
>
> diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
> index 93da9be..439a00f 100644
> --- a/lib/alchemy/pipe.c
> +++ b/lib/alchemy/pipe.c
> @@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
>   	}
>   
>   	if (poolsize > 0) {
> -		ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
> -				 &poolsize, sizeof(poolsize));
> +		ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
> +				      &poolsize, sizeof(poolsize)));
>   		if (ret)
>   			goto fail_sockopt;
>   	}
> @@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
>   	memset(&saddr, 0, sizeof(saddr));
>   	saddr.sipc_family = AF_RTIPC;
>   	saddr.sipc_port = minor;
> -	ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
> +	ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
>   	if (ret)
>   		goto fail_sockopt;
>   
>> Has anything changed handling pipes in 3.0?
> All user-visible changes are reported here:
> http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/
>



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-28 13:44   ` Registrierungen
@ 2014-10-28 13:54     ` Philippe Gerum
  2014-10-29  6:56       ` Registrierungen
  2014-10-28 14:11     ` Gilles Chanteperdrix
  1 sibling, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-10-28 13:54 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 10/28/2014 02:44 PM, Registrierungen wrote:
> Thanks for your support.
> 
> Unfortainly it din'twork for me.
> I patched and recompiled and installed xenomai and my app,
> but i have still the same error.
> 
> Have you got another idea, or need some other informations from my side?

You may want to trace your app with gdb, configuring with
--enable-debug=full, then single-stepping in rt_pipe_create() to
pinpoint the failing call in there.

> 
> Sascha
> 
> Am 28.10.2014 11:01, schrieb Philippe Gerum:
>> On 10/28/2014 10:25 AM, Registrierungen wrote:
>>> Hello,
>>>
>>> i try to switch with my working project from Xenomai 2.6 to 3.0rc
>>> Cobaltusing the native/alchemy skin.
>>>
>>> Creating tasks,etc. seems to works fine.
>>>
>>> If i try to open a pipe from the realtime taks using rt_pipe_create it
>>> returns with the error -88.
>> This is -ENOTSOCK, you can check all error codes there:
>> /usr/include/asm-generic/errno-base.h
>> /usr/include/asm-generic/errno.h
>>
>> ENOTSOCK is not raised by the alchemy API, so this must be a syscall
>> taking the wrong route to the glibc in the core lib.
>> Please try this patch:
>>
>> diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
>> index 93da9be..439a00f 100644
>> --- a/lib/alchemy/pipe.c
>> +++ b/lib/alchemy/pipe.c
>> @@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
>>       }
>>         if (poolsize > 0) {
>> -        ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>> -                 &poolsize, sizeof(poolsize));
>> +        ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>> +                      &poolsize, sizeof(poolsize)));
>>           if (ret)
>>               goto fail_sockopt;
>>       }
>> @@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
>>       memset(&saddr, 0, sizeof(saddr));
>>       saddr.sipc_family = AF_RTIPC;
>>       saddr.sipc_port = minor;
>> -    ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
>> +    ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
>>       if (ret)
>>           goto fail_sockopt;
>>  
>>> Has anything changed handling pipes in 3.0?
>> All user-visible changes are reported here:
>> http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/
>>
> 
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-28 13:44   ` Registrierungen
  2014-10-28 13:54     ` Philippe Gerum
@ 2014-10-28 14:11     ` Gilles Chanteperdrix
  1 sibling, 0 replies; 15+ messages in thread
From: Gilles Chanteperdrix @ 2014-10-28 14:11 UTC (permalink / raw)
  To: Registrierungen; +Cc: xenomai

On Tue, Oct 28, 2014 at 02:44:17PM +0100, Registrierungen wrote:
> Thanks for your support.
> 
> Unfortainly it din'twork for me.
> I patched and recompiled and installed xenomai and my app,
> but i have still the same error.
> 
> Have you got another idea, or need some other informations from my side?

Just a stupid question, you are sure you have RTIPC and XDDP enabled
in kernel configuration, right?

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-28 13:54     ` Philippe Gerum
@ 2014-10-29  6:56       ` Registrierungen
  2014-10-29  7:04         ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Registrierungen @ 2014-10-29  6:56 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

Addendum:
I am using a x64 Kernel.
Does it matter?


Am 28.10.2014 14:54, schrieb Philippe Gerum:
> On 10/28/2014 02:44 PM, Registrierungen wrote:
>> Thanks for your support.
>>
>> Unfortainly it din'twork for me.
>> I patched and recompiled and installed xenomai and my app,
>> but i have still the same error.
>>
>> Have you got another idea, or need some other informations from my side?
> You may want to trace your app with gdb, configuring with
> --enable-debug=full, then single-stepping in rt_pipe_create() to
> pinpoint the failing call in there.
>
>> Sascha
>>
>> Am 28.10.2014 11:01, schrieb Philippe Gerum:
>>> On 10/28/2014 10:25 AM, Registrierungen wrote:
>>>> Hello,
>>>>
>>>> i try to switch with my working project from Xenomai 2.6 to 3.0rc
>>>> Cobaltusing the native/alchemy skin.
>>>>
>>>> Creating tasks,etc. seems to works fine.
>>>>
>>>> If i try to open a pipe from the realtime taks using rt_pipe_create it
>>>> returns with the error -88.
>>> This is -ENOTSOCK, you can check all error codes there:
>>> /usr/include/asm-generic/errno-base.h
>>> /usr/include/asm-generic/errno.h
>>>
>>> ENOTSOCK is not raised by the alchemy API, so this must be a syscall
>>> taking the wrong route to the glibc in the core lib.
>>> Please try this patch:
>>>
>>> diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
>>> index 93da9be..439a00f 100644
>>> --- a/lib/alchemy/pipe.c
>>> +++ b/lib/alchemy/pipe.c
>>> @@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>        }
>>>          if (poolsize > 0) {
>>> -        ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>> -                 &poolsize, sizeof(poolsize));
>>> +        ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>> +                      &poolsize, sizeof(poolsize)));
>>>            if (ret)
>>>                goto fail_sockopt;
>>>        }
>>> @@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>        memset(&saddr, 0, sizeof(saddr));
>>>        saddr.sipc_family = AF_RTIPC;
>>>        saddr.sipc_port = minor;
>>> -    ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
>>> +    ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
>>>        if (ret)
>>>            goto fail_sockopt;
>>>   
>>>> Has anything changed handling pipes in 3.0?
>>> All user-visible changes are reported here:
>>> http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/
>>>
>>
>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-29  6:56       ` Registrierungen
@ 2014-10-29  7:04         ` Philippe Gerum
  2014-10-30 15:13           ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-10-29  7:04 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 10/29/2014 07:56 AM, Registrierungen wrote:
> Addendum:
> I am using a x64 Kernel.
> Does it matter?

No, it does not. Do you plan to debug with gdb as I suggested?

> 
> 
> Am 28.10.2014 14:54, schrieb Philippe Gerum:
>> On 10/28/2014 02:44 PM, Registrierungen wrote:
>>> Thanks for your support.
>>>
>>> Unfortainly it din'twork for me.
>>> I patched and recompiled and installed xenomai and my app,
>>> but i have still the same error.
>>>
>>> Have you got another idea, or need some other informations from my side?
>> You may want to trace your app with gdb, configuring with
>> --enable-debug=full, then single-stepping in rt_pipe_create() to
>> pinpoint the failing call in there.
>>
>>> Sascha
>>>
>>> Am 28.10.2014 11:01, schrieb Philippe Gerum:
>>>> On 10/28/2014 10:25 AM, Registrierungen wrote:
>>>>> Hello,
>>>>>
>>>>> i try to switch with my working project from Xenomai 2.6 to 3.0rc
>>>>> Cobaltusing the native/alchemy skin.
>>>>>
>>>>> Creating tasks,etc. seems to works fine.
>>>>>
>>>>> If i try to open a pipe from the realtime taks using rt_pipe_create it
>>>>> returns with the error -88.
>>>> This is -ENOTSOCK, you can check all error codes there:
>>>> /usr/include/asm-generic/errno-base.h
>>>> /usr/include/asm-generic/errno.h
>>>>
>>>> ENOTSOCK is not raised by the alchemy API, so this must be a syscall
>>>> taking the wrong route to the glibc in the core lib.
>>>> Please try this patch:
>>>>
>>>> diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
>>>> index 93da9be..439a00f 100644
>>>> --- a/lib/alchemy/pipe.c
>>>> +++ b/lib/alchemy/pipe.c
>>>> @@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>>       }
>>>>         if (poolsize > 0) {
>>>> -        ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>>> -                 &poolsize, sizeof(poolsize));
>>>> +        ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>>> +                      &poolsize, sizeof(poolsize)));
>>>>           if (ret)
>>>>               goto fail_sockopt;
>>>>       }
>>>> @@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>>       memset(&saddr, 0, sizeof(saddr));
>>>>       saddr.sipc_family = AF_RTIPC;
>>>>       saddr.sipc_port = minor;
>>>> -    ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
>>>> +    ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
>>>>       if (ret)
>>>>           goto fail_sockopt;
>>>>  
>>>>> Has anything changed handling pipes in 3.0?
>>>> All user-visible changes are reported here:
>>>> http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/
>>>>
>>>
>>
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
       [not found] <54509406.4000600@bmwedler.de>
@ 2014-10-29  7:24 ` Registrierungen
  2014-11-03 12:22   ` Registrierungen
  0 siblings, 1 reply; 15+ messages in thread
From: Registrierungen @ 2014-10-29  7:24 UTC (permalink / raw)
  To: xenomai



Sure. i compiled xenomai as your suggestion.
Ive got a a little problem with my eclipse debug enviroment.
It still does not debug into the xenomai files at moment. so i will fix
it first and come back with new informations.


Am 29.10.2014 08:04, schrieb Philippe Gerum:
> On 10/29/2014 07:56 AM, Registrierungen wrote:
>> Addendum:
>> I am using a x64 Kernel.
>> Does it matter?
> No, it does not. Do you plan to debug with gdb as I suggested?
>




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-29  7:04         ` Philippe Gerum
@ 2014-10-30 15:13           ` Philippe Gerum
  0 siblings, 0 replies; 15+ messages in thread
From: Philippe Gerum @ 2014-10-30 15:13 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 10/29/2014 08:04 AM, Philippe Gerum wrote:
> On 10/29/2014 07:56 AM, Registrierungen wrote:
>> Addendum:
>> I am using a x64 Kernel.
>> Does it matter?
> 
> No, it does not. Do you plan to debug with gdb as I suggested?

This is what you need to enable pipes with Alchemy:

https://git.xenomai.org/xenomai-3.git/commit/?h=next&id=eb69a837eaab4cd6639772503c789de0a52906c0
https://git.xenomai.org/xenomai-3.git/commit/?h=next&id=caf0a0b4a3f279e3e4bd42e6b62bc09fab4fba94

> 
>>
>>
>> Am 28.10.2014 14:54, schrieb Philippe Gerum:
>>> On 10/28/2014 02:44 PM, Registrierungen wrote:
>>>> Thanks for your support.
>>>>
>>>> Unfortainly it din'twork for me.
>>>> I patched and recompiled and installed xenomai and my app,
>>>> but i have still the same error.
>>>>
>>>> Have you got another idea, or need some other informations from my side?
>>> You may want to trace your app with gdb, configuring with
>>> --enable-debug=full, then single-stepping in rt_pipe_create() to
>>> pinpoint the failing call in there.
>>>
>>>> Sascha
>>>>
>>>> Am 28.10.2014 11:01, schrieb Philippe Gerum:
>>>>> On 10/28/2014 10:25 AM, Registrierungen wrote:
>>>>>> Hello,
>>>>>>
>>>>>> i try to switch with my working project from Xenomai 2.6 to 3.0rc
>>>>>> Cobaltusing the native/alchemy skin.
>>>>>>
>>>>>> Creating tasks,etc. seems to works fine.
>>>>>>
>>>>>> If i try to open a pipe from the realtime taks using rt_pipe_create it
>>>>>> returns with the error -88.
>>>>> This is -ENOTSOCK, you can check all error codes there:
>>>>> /usr/include/asm-generic/errno-base.h
>>>>> /usr/include/asm-generic/errno.h
>>>>>
>>>>> ENOTSOCK is not raised by the alchemy API, so this must be a syscall
>>>>> taking the wrong route to the glibc in the core lib.
>>>>> Please try this patch:
>>>>>
>>>>> diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
>>>>> index 93da9be..439a00f 100644
>>>>> --- a/lib/alchemy/pipe.c
>>>>> +++ b/lib/alchemy/pipe.c
>>>>> @@ -166,8 +166,8 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>>>       }
>>>>>         if (poolsize > 0) {
>>>>> -        ret = setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>>>> -                 &poolsize, sizeof(poolsize));
>>>>> +        ret = __RT(setsockopt(pcb->sock, SOL_XDDP, XDDP_POOLSZ,
>>>>> +                      &poolsize, sizeof(poolsize)));
>>>>>           if (ret)
>>>>>               goto fail_sockopt;
>>>>>       }
>>>>> @@ -181,7 +181,7 @@ int rt_pipe_create(RT_PIPE *pipe,
>>>>>       memset(&saddr, 0, sizeof(saddr));
>>>>>       saddr.sipc_family = AF_RTIPC;
>>>>>       saddr.sipc_port = minor;
>>>>> -    ret = bind(sock, (struct sockaddr *)&saddr, sizeof(saddr));
>>>>> +    ret = __RT(bind(sock, (struct sockaddr *)&saddr, sizeof(saddr)));
>>>>>       if (ret)
>>>>>           goto fail_sockopt;
>>>>>  
>>>>>> Has anything changed handling pipes in 3.0?
>>>>> All user-visible changes are reported here:
>>>>> http://localhost/xenomai/migrating-from-xenomai-2-x-to-3-x/
>>>>>
>>>>
>>>
>>
> 
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-10-29  7:24 ` Registrierungen
@ 2014-11-03 12:22   ` Registrierungen
  2014-11-03 13:20     ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Registrierungen @ 2014-11-03 12:22 UTC (permalink / raw)
  To: xenomai

Sorry for the late feedback.

I found the source where it goes wrong:

     if (poolsize > 0) {
         ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
                       &poolsize, sizeof(poolsize)));
         if (ret)
             goto fail_sockopt;
     }

Hope there could be found a solution for me.




Am 29.10.2014 08:24, schrieb Registrierungen:
>
>
> Sure. i compiled xenomai as your suggestion.
> Ive got a a little problem with my eclipse debug enviroment.
> It still does not debug into the xenomai files at moment. so i will fix
> it first and come back with new informations.
>
>
> Am 29.10.2014 08:04, schrieb Philippe Gerum:
>> On 10/29/2014 07:56 AM, Registrierungen wrote:
>>> Addendum:
>>> I am using a x64 Kernel.
>>> Does it matter?
>> No, it does not. Do you plan to debug with gdb as I suggested?
>>
>
>
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-11-03 12:22   ` Registrierungen
@ 2014-11-03 13:20     ` Philippe Gerum
  2014-11-03 13:22       ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-11-03 13:20 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 11/03/2014 01:22 PM, Registrierungen wrote:
> Sorry for the late feedback.
> 
> I found the source where it goes wrong:
> 
>     if (poolsize > 0) {
>         ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
>                       &poolsize, sizeof(poolsize)));
>         if (ret)
>             goto fail_sockopt;
>     }
> 
> Hope there could be found a solution for me.
> 

The solution was given a few days ago:

http://www.xenomai.org/pipermail/xenomai/2014-October/032054.html

-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-11-03 13:20     ` Philippe Gerum
@ 2014-11-03 13:22       ` Philippe Gerum
  2014-11-03 15:21         ` Registrierungen
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-11-03 13:22 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 11/03/2014 02:20 PM, Philippe Gerum wrote:
> On 11/03/2014 01:22 PM, Registrierungen wrote:
>> Sorry for the late feedback.
>>
>> I found the source where it goes wrong:
>>
>>     if (poolsize > 0) {
>>         ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
>>                       &poolsize, sizeof(poolsize)));
>>         if (ret)
>>             goto fail_sockopt;
>>     }
>>
>> Hope there could be found a solution for me.
>>
> 
> The solution was given a few days ago:
> 
> http://www.xenomai.org/pipermail/xenomai/2014-October/032054.html
> 

Those patches are present in -rc2, released a couple of days ago. You
should not bother with -rc1 anymore.

-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-11-03 13:22       ` Philippe Gerum
@ 2014-11-03 15:21         ` Registrierungen
  2014-11-03 15:51           ` Philippe Gerum
  0 siblings, 1 reply; 15+ messages in thread
From: Registrierungen @ 2014-11-03 15:21 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

I tried with rc2, but now it returns with error 3 (not -3) ?


Am 03.11.2014 14:22, schrieb Philippe Gerum:
> On 11/03/2014 02:20 PM, Philippe Gerum wrote:
>> On 11/03/2014 01:22 PM, Registrierungen wrote:
>>> Sorry for the late feedback.
>>>
>>> I found the source where it goes wrong:
>>>
>>>      if (poolsize > 0) {
>>>          ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
>>>                        &poolsize, sizeof(poolsize)));
>>>          if (ret)
>>>              goto fail_sockopt;
>>>      }
>>>
>>> Hope there could be found a solution for me.
>>>
>> The solution was given a few days ago:
>>
>> http://www.xenomai.org/pipermail/xenomai/2014-October/032054.html
>>
> Those patches are present in -rc2, released a couple of days ago. You
> should not bother with -rc1 anymore.
>



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-11-03 15:21         ` Registrierungen
@ 2014-11-03 15:51           ` Philippe Gerum
  2014-11-07 11:12             ` Registrierungen
  0 siblings, 1 reply; 15+ messages in thread
From: Philippe Gerum @ 2014-11-03 15:51 UTC (permalink / raw)
  To: Registrierungen, xenomai

On 11/03/2014 04:21 PM, Registrierungen wrote:
> I tried with rc2, but now it returns with error 3 (not -3) ?

http://xenomai.org/migrating-from-xenomai-2-x-to-3-x/#Message_pipes

> 
> 
> Am 03.11.2014 14:22, schrieb Philippe Gerum:
>> On 11/03/2014 02:20 PM, Philippe Gerum wrote:
>>> On 11/03/2014 01:22 PM, Registrierungen wrote:
>>>> Sorry for the late feedback.
>>>>
>>>> I found the source where it goes wrong:
>>>>
>>>>      if (poolsize > 0) {
>>>>          ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
>>>>                        &poolsize, sizeof(poolsize)));
>>>>          if (ret)
>>>>              goto fail_sockopt;
>>>>      }
>>>>
>>>> Hope there could be found a solution for me.
>>>>
>>> The solution was given a few days ago:
>>>
>>> http://www.xenomai.org/pipermail/xenomai/2014-October/032054.html
>>>
>> Those patches are present in -rc2, released a couple of days ago. You
>> should not bother with -rc1 anymore.
>>
> 
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [Xenomai] Using pipes in 3.0rc
  2014-11-03 15:51           ` Philippe Gerum
@ 2014-11-07 11:12             ` Registrierungen
  0 siblings, 0 replies; 15+ messages in thread
From: Registrierungen @ 2014-11-07 11:12 UTC (permalink / raw)
  To: 'Philippe Gerum', xenomai

It works now! 
Thanks for your support.

Sascha

-----Ursprüngliche Nachricht-----
Von: Philippe Gerum [mailto:rpm@xenomai.org] 
Gesendet: Montag, 3. November 2014 16:52
An: Registrierungen; xenomai@xenomai.org
Betreff: Re: [Xenomai] Using pipes in 3.0rc

On 11/03/2014 04:21 PM, Registrierungen wrote:
> I tried with rc2, but now it returns with error 3 (not -3) ?

http://xenomai.org/migrating-from-xenomai-2-x-to-3-x/#Message_pipes

> 
> 
> Am 03.11.2014 14:22, schrieb Philippe Gerum:
>> On 11/03/2014 02:20 PM, Philippe Gerum wrote:
>>> On 11/03/2014 01:22 PM, Registrierungen wrote:
>>>> Sorry for the late feedback.
>>>>
>>>> I found the source where it goes wrong:
>>>>
>>>>      if (poolsize > 0) {
>>>>          ret = __RT(setsockopt(sock, SOL_XDDP, XDDP_POOLSZ,
>>>>                        &poolsize, sizeof(poolsize)));
>>>>          if (ret)
>>>>              goto fail_sockopt;
>>>>      }
>>>>
>>>> Hope there could be found a solution for me.
>>>>
>>> The solution was given a few days ago:
>>>
>>> http://www.xenomai.org/pipermail/xenomai/2014-October/032054.html
>>>
>> Those patches are present in -rc2, released a couple of days ago. You 
>> should not bother with -rc1 anymore.
>>
> 
> 


--
Philippe.



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-11-07 11:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28  9:25 [Xenomai] Using pipes in 3.0rc Registrierungen
2014-10-28 10:01 ` Philippe Gerum
2014-10-28 13:44   ` Registrierungen
2014-10-28 13:54     ` Philippe Gerum
2014-10-29  6:56       ` Registrierungen
2014-10-29  7:04         ` Philippe Gerum
2014-10-30 15:13           ` Philippe Gerum
2014-10-28 14:11     ` Gilles Chanteperdrix
     [not found] <54509406.4000600@bmwedler.de>
2014-10-29  7:24 ` Registrierungen
2014-11-03 12:22   ` Registrierungen
2014-11-03 13:20     ` Philippe Gerum
2014-11-03 13:22       ` Philippe Gerum
2014-11-03 15:21         ` Registrierungen
2014-11-03 15:51           ` Philippe Gerum
2014-11-07 11:12             ` Registrierungen

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.