All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <kiszka@domain.hid>
To: "Landau, Bracha" <BLandau@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] using mq_receive and mq_send
Date: Wed, 30 Nov 2005 16:44:52 +0100	[thread overview]
Message-ID: <438DC8F4.9070409@domain.hid> (raw)
In-Reply-To: <02AA386EB831044F8537A696BA785C78076489@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 2070 bytes --]

Landau, Bracha wrote:
> it says:
>          U __wrap_mq_close
>          U __wrap_mq_open
>          U __wrap_mq_receive
>          U __wrap_mq_send
>          U __wrap_mq_unlink

Are you calling send and receive from a xenomai thread? EPERM (1) is
typically related to non-RT invocations.

Jan

> 
> -----Original Message-----
> From: Philippe Gerum [mailto:rpm@xenomai.org]
> Sent: Wednesday, November 30, 2005 4:37 PM
> To: Landau, Bracha
> Cc: xenomai@xenomai.org
> Subject: Re: [Xenomai-help] using mq_receive and mq_send
> 
> 
> Landau, Bracha wrote:
>> I do link that way. The linking is fine, only the mq_receive and mq_send don't work. I don't even "own" the regular libmqueue library.
>>
> 
> What does "nm <your_app>|grep wrap_mq_" says?
> 
>> -----Original Message-----
>> From: Philippe Gerum [mailto:rpm@xenomai.org]
>> Sent: Wednesday, November 30, 2005 4:01 PM
>> To: Landau, Bracha
>> Cc: xenomai@xenomai.org
>> Subject: Re: [Xenomai-help] using mq_receive and mq_send
>>
>>
>> Landau, Bracha wrote:
>>
>>> I am using Xenomai on the MPC8272ADS board with kernel 2.6.14.3.
>>>
>>> I've created an application that uses posix message queuing from xenomai.
>>>
>>> When I call mq_open, mq_close, mq_setattr, mq_getattr, mq_unlink - the calls succeed.
>>>
>>> When I call mq_receive or mq_send, the call fails (returns -1) and errno is set to 1 (Operation not permited).
>>>
>>> I put some debugging printk's into the xenomai code and it seems it doesn't even get to the call to __mq_receive or __mq_send from syscall.c (it does get to printk's that I put in  the other __mq_* functions).
>>>
>>> Can anyone help?
>>>
>>
>> You must link your app with the flags output by "xeno-config 
>> --posix-ldflags". Have a look at skins/posix/demos/Makefile for a 
>> working example.
>>
> 
> 


-- 
Dipl.-Ing. Jan Kiszka

Institute for Systems Engineering, Real-Time Systems Group (RTS)
Appelstraße 9A, D-30167 Hannover
phone +49 511 762-3974 / fax +49 511 762-4012
http://www.rts.uni-hannover.de


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2005-11-30 15:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 15:42 [Xenomai-help] using mq_receive and mq_send Landau, Bracha
2005-11-30 15:44 ` Jan Kiszka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-12-01  8:23 Landau, Bracha
2005-11-30 14:25 Landau, Bracha
2005-11-30 14:36 ` Philippe Gerum
2005-11-30 13:46 Landau, Bracha
2005-11-30 14:00 ` Philippe Gerum

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=438DC8F4.9070409@domain.hid \
    --to=kiszka@domain.hid \
    --cc=BLandau@domain.hid \
    --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.