All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Registrierungen <regist@bmwedler.de>, xenomai@xenomai.org
Subject: Re: [Xenomai] Using pipes in 3.0rc
Date: Tue, 28 Oct 2014 14:54:09 +0100	[thread overview]
Message-ID: <544FA001.6070305@xenomai.org> (raw)
In-Reply-To: <544F9DB1.1050504@bmwedler.de>

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.


  reply	other threads:[~2014-10-28 13:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=544FA001.6070305@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=regist@bmwedler.de \
    --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.