-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Wednesday, 03. August, 2011 16:03
To: Sambasiva Rao Manchili
Cc: Philippe Gerum; Antonio Gambin; [email protected]
Subject: Re: [Xenomai-help] Xenomai VxWorks Skin--->semTake

On 08/03/2011 03:31 PM, Sambasiva Rao Manchili wrote:
> Hi Gilles,
> I had seen the code  in src\skins\vxworks\semLib.c it returns ERROR which is 
> -1.
>
> The value that I sent earlier is the value that I got out of the following 
> statement.
> serrLog( serrErr,
>              "resu_getonline_1_svc: semTake for restab_access_smp 
> failed!!<%s>",
>               strerror(errnoGet()));
>
> Is it right ?

You want printErrno instead of strerror.

>>Samba:
>>In the beginning days of our code porting from VxWorks to Linux,  Xenomai 
>>failed to create message Queue  that was working on VxWorks.
>>When xenomai failed to create message queue it returned 0x110001===>1114113. 
>>After reading the Xenomai code a bit I understood it is 
>>S_memLib_NOT_ENOUGH_MEMORY.
>>I therefore reduced the Queue size by 5 times and it was then successful.  
>>The way I extracted the errno in beginning days is same as I did today. So I 
>>epxected a value which >>tells the actual reason of semTake failure. But I 
>>got this huge value which is -1.  Am I missing something ?

>
>
> Now again I tried with
>  serrLog( serrErr,
>              "resu_getonline_1_svc: semTake for restab_access_smp 
> failed!!<%s> <%d>",
>               strerror(errnoGet()), errno);
>
> Here I get value 1 for errno.

1 is EPERM. Is the thread issuing the call a thread created by Xenomai?

>>Samba: Yes. I guess taskSpawn leads finally to Xenomai libraries to create 
>>thread.  All  our VxWorks code(with minor changes) as it is running on top of 
>>Xenomai.
>> Please tell me,  What will you suggest me then ?

--
                                            Gilles.


This email and any attachment may contain confidential information which is 
intended for use only by the addressee(s) named above. If you received this 
email by mistake, please notify the sender immediately, and delete the email 
from your system. You are prohibited from copying, disseminating or otherwise 
using the email or any attachment.


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

Reply via email to